diff --git a/kibot/gs.py b/kibot/gs.py index 6a45cc12..049e0100 100644 --- a/kibot/gs.py +++ b/kibot/gs.py @@ -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 diff --git a/tests/.config/kiplot/plugins/fil_test.py b/tests/.config/kiplot/plugins/fil_test.py index 76b517cb..d8b6c310 100644 --- a/tests/.config/kiplot/plugins/fil_test.py +++ b/tests/.config/kiplot/plugins/fil_test.py @@ -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