File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def test_run_with_multiple_schedule_args(self) -> None:
61
61
62
62
args = [
63
63
"--scheduler" ,
64
- "local_conda " ,
64
+ "local_cwd " ,
65
65
"--scheduler" ,
66
66
"local_cwd" ,
67
67
]
Original file line number Diff line number Diff line change 13
13
from pathlib import Path
14
14
from unittest .mock import MagicMock , patch
15
15
16
+ from torchx .cli .argparse_util import ArgOnceAction , torchxconfig
17
+
16
18
from torchx .cli .cmd_base import SubCommand
17
19
from torchx .cli .main import get_sub_cmds , main
18
20
@@ -37,6 +39,8 @@ def setUp(self) -> None:
37
39
38
40
def tearDown (self ) -> None :
39
41
os .chdir (self .old_cwd )
42
+ ArgOnceAction .called_args = set ()
43
+ torchxconfig .called_args = set ()
40
44
41
45
def test_run_abs_config_path (self ) -> None :
42
46
main (
You can’t perform that action at this time.
0 commit comments