We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4d7a90 commit 9a61f71Copy full SHA for 9a61f71
torchx/cli/test/cmd_run_test.py
@@ -61,7 +61,7 @@ def test_run_with_multiple_schedule_args(self) -> None:
61
62
args = [
63
"--scheduler",
64
- "local_conda",
+ "local_cwd",
65
66
"local_cwd",
67
]
torchx/cli/test/main_test.py
@@ -13,6 +13,8 @@
13
from pathlib import Path
14
from unittest.mock import MagicMock, patch
15
16
+from torchx.cli.argparse_util import ArgOnceAction, torchxconfig
17
+
18
from torchx.cli.cmd_base import SubCommand
19
from torchx.cli.main import get_sub_cmds, main
20
@@ -37,6 +39,8 @@ def setUp(self) -> None:
37
39
38
40
def tearDown(self) -> None:
41
os.chdir(self.old_cwd)
42
+ ArgOnceAction.called_args = set()
43
+ torchxconfig.called_args = set()
44
45
def test_run_abs_config_path(self) -> None:
46
main(
0 commit comments