Skip to content

Commit fb748f4

Browse files
committed
Isolate define_waterregions test to address issue with col2map command
1 parent 64e1a74 commit fb748f4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/ci_env.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ jobs:
4747
shell: bash -el {0}
4848
run: |
4949
pip install pytest pytest-cov
50-
pytest
50+
pytest -m "not defwaterregions"
51+
pytest -m "defwaterregions"

pytest.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ filterwarnings =
77
ignore::DeprecationWarning
88
ignore::UserWarning
99
ignore::RuntimeWarning
10-
# addopts = -ra -x -l --cov=lisfloodutilities --cov-config=.coveragerc -vv
10+
#addopts = -ra -x -l --cov=lisfloodutilities --cov-config=.coveragerc -m "not defwaterregions" -vv
11+
addopts = -m "not defwaterregions"

tests/test_waterregions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import os
22

3+
import pytest
4+
35
from lisfloodutilities.readers import PCRasterMap
46

57
from lisfloodutilities.waterregions.define_waterregions import define_waterregions
@@ -9,6 +11,7 @@
911

1012
class TestWaterRegions:
1113

14+
@pytest.mark.defwaterregions
1215
def test_define_waterregions(self):
1316
calib_points = 'tests/data/waterregions/calib_points_test.txt'
1417
countries_id = 'tests/data/waterregions/countries_id_test.map'

0 commit comments

Comments
 (0)