@@ -135,40 +135,22 @@ def test_gpus_per_node_value(self, nemo_cmd_gen: NeMoLauncherSlurmCommandGenStra
135135
136136 assert "cluster.gpus_per_node=null" in cmd
137137
138- def test_argument_with_tilde_value (self , nemo_cmd_gen : NeMoLauncherSlurmCommandGenStrategy , nemo_test_run : TestRun ):
139- tdef : NeMoLauncherTestDefinition = cast (NeMoLauncherTestDefinition , nemo_test_run .test .test_definition )
140- tdef .cmd_args .training .model .micro_batch_size = "~" # type: ignore
141-
142- cmd = nemo_cmd_gen .gen_exec_command (nemo_test_run )
143- assert "~training.model.micro_batch_size=null" in cmd
144-
145138 def test_data_impl_mock_skips_checks (
146139 self , nemo_cmd_gen : NeMoLauncherSlurmCommandGenStrategy , nemo_test_run : TestRun
147140 ):
148141 tdef : NeMoLauncherTestDefinition = cast (NeMoLauncherTestDefinition , nemo_test_run .test .test_definition )
149- tdef .cmd_args .data_dir = "DATA_DIR"
150-
142+ tdef .extra_cmd_args = {"data_dir" : "DATA_DIR" }
151143 cmd = nemo_cmd_gen .gen_exec_command (nemo_test_run )
152- assert "data_dir" in cmd
144+ assert "data_dir=DATA_DIR " in cmd
153145
154146 def test_data_dir_and_data_prefix_validation (
155147 self , nemo_cmd_gen : NeMoLauncherSlurmCommandGenStrategy , nemo_test_run : TestRun
156148 ):
157149 tdef : NeMoLauncherTestDefinition = cast (NeMoLauncherTestDefinition , nemo_test_run .test .test_definition )
158150 tdef .cmd_args .training .model .data .data_impl = "not_mock"
159151 tdef .cmd_args .training .model .data .data_prefix = "[]"
152+ tdef .extra_cmd_args = {"data_dir" : "DATA_DIR" }
160153
161- with pytest .raises (
162- ValueError ,
163- match = (
164- "The 'data_dir' field of the NeMo launcher test contains an invalid placeholder '~'. "
165- "Please provide a valid path to the dataset in the test schema TOML file. "
166- "The 'data_dir' field must point to an actual dataset location."
167- ),
168- ):
169- nemo_cmd_gen .gen_exec_command (nemo_test_run )
170-
171- tdef .cmd_args .data_dir = "/fake/data_dir"
172154 with pytest .raises (ValueError , match = "The 'data_prefix' field of the NeMo launcher test is missing or empty." ):
173155 nemo_cmd_gen .gen_exec_command (nemo_test_run )
174156
0 commit comments