[Tests] Fixed fil_test.py assertions
- PyTest 6 failed to catch the assert, but 7 does
This commit is contained in:
parent
09fca23a42
commit
15d5f90a27
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue