Skip to content

Commit 3945341

Browse files
committed
PR #662 set filterwarnings globally on test_job_management
1 parent f98b3d3 commit 3945341

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/extra/test_job_management.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
from openeo.rest._testing import OPENEO_BACKEND, DummyBackend, build_capabilities
3939
from openeo.util import rfc3339
4040

41+
# Module level markers
42+
pytestmark = [
43+
# Fail on all warnings (except our own deprecation warnings)
44+
pytest.mark.filterwarnings("error"),
45+
pytest.mark.filterwarnings("default:.*`output_file` argument is deprecated.*:DeprecationWarning"),
46+
]
47+
4148

4249
@pytest.fixture
4350
def con(requests_mock) -> openeo.Connection:
@@ -77,8 +84,6 @@ def sleep_mock():
7784
yield sleep
7885

7986

80-
@pytest.mark.filterwarnings("default:.*`output_file` argument is deprecated.*:DeprecationWarning")
81-
@pytest.mark.filterwarnings("error")
8287
class TestMultiBackendJobManager:
8388

8489
@pytest.fixture

0 commit comments

Comments
 (0)