Skip to content

Commit

Permalink
Updated branch.scenario_name to correct branch.config_scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed Aug 7, 2024
1 parent f9b4c4f commit e3c2693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model_config_tests/qa/test_access_esm1p5_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ def test_config_start(self, branch, config):

start: dict[str, int] = config["calendar"]["start"]

Check warning on line 120 in src/model_config_tests/qa/test_access_esm1p5_config.py

View check run for this annotation

Codecov / codecov/patch

src/model_config_tests/qa/test_access_esm1p5_config.py#L120

Added line #L120 was not covered by tests

if branch.scenario_name == "preindustrial":
if branch.config_scenario == "preindustrial":
assert start == VALID_PREINDUSTRIAL_START, error_field_incorrect(

Check warning on line 123 in src/model_config_tests/qa/test_access_esm1p5_config.py

View check run for this annotation

Codecov / codecov/patch

src/model_config_tests/qa/test_access_esm1p5_config.py#L122-L123

Added lines #L122 - L123 were not covered by tests
"calendar.start", "config.yaml", VALID_PREINDUSTRIAL_START
)
elif branch.scenario_name == "historical":
elif branch.config_scenario == "historical":
assert start == VALID_HISTORICAL_START, error_field_incorrect(

Check warning on line 127 in src/model_config_tests/qa/test_access_esm1p5_config.py

View check run for this annotation

Codecov / codecov/patch

src/model_config_tests/qa/test_access_esm1p5_config.py#L126-L127

Added lines #L126 - L127 were not covered by tests
"calendar.start", "config.yaml", VALID_HISTORICAL_START
)
Expand Down

0 comments on commit e3c2693

Please sign in to comment.