Skip to content

Commit

Permalink
- refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
KriWay committed Apr 26, 2024
1 parent a4fa6d1 commit 10b0949
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,19 @@ def test_validate_error(tmp_path):
(sub_dir / "footballfields_BEFL-2019_locations.gpkg").touch()
(sub_dir / "footballfields_BEFL-2019_polygons.gpkg").touch()

with pytest.raises(
Exception,
match="ERROR while running validate for task footballfields",
):
# with pytest.raises(
# Exception,
# match="ERROR while running validate for task footballfields_BEFL-2019_test",
# ):
# orthoseg.validate(
# config_path=test_helper.SampleProjectFootball.predict_config_path,
# )

with pytest.raises(Exception) as excinfo:
orthoseg.validate(
config_path=test_helper.SampleProjectFootball.predict_config_path,
)

assert "ERROR while running validate for task footballfields_BEFL-2019_test" in str(
excinfo.value
)

0 comments on commit 10b0949

Please sign in to comment.