Selaa lähdekoodia

fix: reset _CLI._subparser_action and _CLI._sub_taipyparsers on clean_parser() fixture

trgiangdo 1 vuosi sitten
vanhempi
säilyke
c82d6621ba
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      tests/config/common/test_argparser.py

+ 3 - 0
tests/config/common/test_argparser.py

@@ -50,6 +50,9 @@ def clean_argparser():
 
     yield
 
+    _CLI._subparser_action = None
+    _CLI._sub_taipyparsers = {}
+
 
 def test_subparser(capfd):
     subcommand_1 = _CLI._add_subparser("subcommand_1", help="subcommand_1 help")