Skip to content

Commit

Permalink
Reflect Andrei's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TaekyungHeo committed Nov 18, 2024
1 parent fdaef60 commit 17fa827
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,3 @@ def test_generate_test_command(
test_run,
)
assert cmd == expected_cmd, f"Expected command {expected_cmd}, but got {cmd}"

@pytest.mark.parametrize(
"cmd_args, expected_exception",
[
({"docker_image_url": "nvcr.io/nvidia/nemo:24.09", "recipe_name": "llama7_13b"}, ValueError),
({"task": "fine_tune"}, ValueError),
],
)
def test_generate_test_command_exceptions(
self,
cmd_gen_strategy: NeMoRunSlurmCommandGenStrategy,
test_run: TestRun,
cmd_args: dict,
expected_exception: type,
) -> None:
test_run.test.test_definition.cmd_args = NeMoRunCmdArgs(**cmd_args)

with pytest.raises(expected_exception):
cmd_gen_strategy.generate_test_command(
test_run.test.test_definition.extra_env_vars,
test_run.test.test_definition.cmd_args.model_dump(),
test_run,
)

0 comments on commit 17fa827

Please sign in to comment.