Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
ce78bf0b by Cédric Krier at 2023-02-12T12:02:13+01:00
Test page name attribute is an existing field
- - - - -
1 changed file:
- trytond/trytond/tests/test_tryton.py
Changes:
=====================================
trytond/trytond/tests/test_tryton.py
=====================================
@@ -338,8 +338,12 @@
for element in tree_root.iter():
with self.subTest(element=element):
if element.tag in {
- 'field', 'label', 'separator', 'group'}:
- for attr in ['name', 'icon', 'symbol']:
+ 'field', 'label', 'separator', 'group',
+ 'page'}:
+ attrs = ['name']
+ if element.tag == 'field':
+ attrs += ['icon', 'symbol']
+ for attr in attrs:
field = element.get(attr)
if field:
self.assertIn(field, res['fields'].keys(),
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/ce78bf0b51ff55cc97f2bc7d9afb080916585e0e
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/ce78bf0b51ff55cc97f2bc7d9afb080916585e0e
You're receiving this email because of your account on foss.heptapod.net.