Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions tests/integration/recipe/test_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3888,14 +3888,13 @@ def test_align_metadata_invalid_project(tmp_path, patched_datafinder, session):
""")
msg = (
"align_metadata failed: \"No CMOR tables available for project 'ZZZ'. "
"The following tables are available: CMIP7, CMIP6, CMIP5, CMIP3, "
"CORDEX, obs4MIPs, ana4MIPs, native6, ACCESS, CESM, EMAC, ICON, IPSLCM, "
'OBS6, OBS."'
'The following tables are available: .*."'
)
with pytest.raises(RecipeError) as exc:
get_recipe(tmp_path, content, session)
assert str(exc.value) == INITIALIZATION_ERROR_MSG
assert exc.value.failed_tasks[0].message == msg
assert re.match(msg, exc.value.failed_tasks[0].message)
assert "CMIP7" in exc.value.failed_tasks[0].message


def test_align_metadata_invalid_name(tmp_path, patched_datafinder, session):
Expand Down