瀏覽代碼

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

trgiangdo 1 年之前
父節點
當前提交
c82d6621ba
共有 1 個文件被更改,包括 3 次插入0 次删除
  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")