Skip to content

Commit

Permalink
Updated the collate.mpi value assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed Aug 13, 2024
1 parent 8d2e2ac commit ec2b080
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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 @@ -185,6 +185,9 @@ def test_mppnccombine_fast_collate_exe(self, config):
"collate.mpi", "config.yaml"
)

assert config["collate"]["mpi"], error_field_incorrect(
"collate.mpi", "config.yaml", "true"
# Loading the yaml into a dict also converts
# `collate.mpi:true`/`collate.mpi:false` to `True`/`False` so we
# can assert if it is a `bool`.
assert isinstance(config["collate"]["mpi"], bool), error_field_incorrect(
"collate.mpi", "config.yaml", "true or false"
)

0 comments on commit ec2b080

Please sign in to comment.