Skip to content

Commit

Permalink
Changes to test_eta.py to support changes in PR 65 in NDSL
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalatino committed Aug 22, 2024
1 parent 4e2521d commit 32e675f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/main/grid/test_eta.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ def test_set_hybrid_pressure_coefficients_nofile():
with open(config_file, "r") as f:
yaml_config = yaml.safe_load(f)

del yaml_config["grid_config"]["config"]["eta_file"]
yaml_config["grid_config"]["config"]["eta_file"] = ""

try:
driver_config = DriverConfig.from_dict(yaml_config)
driver_config.comm_config = NullCommConfig(rank=0, total_ranks=6)
driver = Driver(config=driver_config)
except Exception as error:
if str(error) == "eta file not specified":
if str(error) == "eta file does not exist":
pytest.xfail("testing eta file not specified")
else:
pytest.fail(f"ERROR {error}")
Expand Down

0 comments on commit 32e675f

Please sign in to comment.