Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ def mock_config():
}


@pytest.fixture
def mock_config_om2():
"""Standard configuration for testing."""
return {
"experiment_id": "historical",
"source_id": "ACCESS-OM2",
"variant_label": "r1i1p1f1",
"grid_label": "gn",
"activity_id": "CMIP",
}


@pytest.fixture
def batch_config():
"""Sample batch configuration for testing."""
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_cmoriser_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_multiple_variables_workflow(

@patch("access_moppy.base.xr.open_mfdataset")
def test_multiple_ocean_variables_workflow(
self, mock_open_mfdataset, mock_config, temp_dir
self, mock_open_mfdataset, mock_config_om2, temp_dir
):
"""Test workflow with multiple variables in dataset."""
# Create dataset with multiple variables
Expand All @@ -115,7 +115,7 @@ def test_multiple_ocean_variables_workflow(
input_paths=["mock_file.nc"],
compound_name=compound_name,
output_path=temp_dir,
**mock_config,
**mock_config_om2,
)

with patch.object(cmoriser, "write"):
Expand Down