Skip to content

Commit

Permalink
Update tests/unit_tests/parsing/test_yaml_data_models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski authored Jan 31, 2025
1 parent 10e50b6 commit 47052df
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions tests/unit_tests/parsing/test_yaml_data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,3 @@ def test_load_workflow_config(minimal_config_path):
testee = models.ConfigWorkflow.from_config_file(str(minimal_config_path))
assert testee.name == "minimal"
assert testee.rootdir == minimal_config_path.parent


def test_name_none_fail(minimal_config):
"""Test that `ConfigWorkflow` fails if name is None."""

with pytest.raises(ValidationError, match=r".*1 validation error for ConfigWorkflow\nname.*"):
models.ConfigWorkflow(
name=None,
rootdir=minimal_config.rootdir,
cycles=minimal_config.cycles,
tasks=minimal_config.tasks,
data=minimal_config.data,
parameters=minimal_config.parameters,
)


def test_rootdir_none_fail(minimal_config):
"""Test that `ConfigWorkflow` fails if rootdir is None."""

with pytest.raises(ValidationError, match=r".*1 validation error for ConfigWorkflow\nrootdir.*"):
models.ConfigWorkflow(
name=minimal_config.name,
rootdir=None,
cycles=minimal_config.cycles,
tasks=minimal_config.tasks,
data=minimal_config.data,
parameters=minimal_config.parameters,
)

0 comments on commit 47052df

Please sign in to comment.