[Tests] Fixed fil_test.py assertions

- PyTest 6 failed to catch the assert, but 7 does
This commit is contained in:
Salvador E. Tropea 2022-07-09 19:44:02 -03:00
parent 09fca23a42
commit 15d5f90a27
2 changed files with 5 additions and 2 deletions

View File

@ -84,6 +84,7 @@ class GS(object):
# Name for the output we are generating
current_output = None
test_boolean = True
test_number = 5
stackup = None
#
# Global defaults

View File

@ -6,12 +6,14 @@ logger = log.get_logger(__name__)
with document:
avar = GS.debug_level
avar = GS.test_number
""" Documentation """
bvar = GS.test_boolean
""" Other doc """
assert _help_avar == '[number=0] Documentation. Affected by global options', _help_avar # noqa: F821
assert _help_avar == '[number=5] Documentation. Affected by global options', _help_avar # noqa: F821
assert _help_bvar == '[boolean=true] Other doc. Affected by global options', _help_bvar # noqa: F821
logger.debug('Test filter imported, assertions passed, debug_level: {}'.format(GS.debug_level))
logger.debug('_help_avar: {}'.format(_help_avar)) # noqa: F821
@filter_class