We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a054f4a commit 120a3c5Copy full SHA for 120a3c5
tests/slurm_command_gen_strategy/test_megatron_bridge_slurm_command_gen_strategy.py
@@ -175,9 +175,12 @@ def test_detach_flags(
175
cmd_gen.gen_exec_command()
176
wrapper = test_run.output_path / "megatron_bridge_submit_and_parse_jobid.sh"
177
wrapper_content = wrapper.read_text()
178
- if expected:
179
- assert expected in wrapper_content
180
if detach is None:
+ assert "--detach" not in wrapper_content
+ assert "--no-detach" not in wrapper_content
181
+ else:
182
+ assert expected is not None
183
+ assert expected in wrapper_content
184
assert not_expected not in wrapper_content
185
186
def test_generated_command_file_written(
0 commit comments