Skip to content

Commit

Permalink
Fix test_yaml_model_data
Browse files Browse the repository at this point in the history
  • Loading branch information
HiddeElzinga committed May 23, 2024
1 parent 93da5a8 commit 2650bb6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/data/entities/test_yaml_model_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""


from pathlib import Path
from unittest.mock import Mock

import xarray as _xr
Expand All @@ -28,11 +29,14 @@ def test_yaml_model_data_default_settings_and_type():
# Arrange
datasets = [Mock(DatasetData)]
rules = [Mock(MultiplyRuleData)]
output_dataset = Mock(_xr.Dataset)
version='0.0.0'
version = [0, 0, 0]

# Act
model_data = YamlModelData("Model 1", version, datasets, output_dataset, [], rules)
model_data = YamlModelData("Model 1", version)
model_data.output_path = Path("")
model_data.datasets = datasets
model_data.output_variables = []
model_data.rules = rules

# Assert

Expand Down

0 comments on commit 2650bb6

Please sign in to comment.