Skip to content

test: remove warning messages due to unregistered pytest marker `compatible`

Running pytest was generating many warning messages due to the unregistered marker compatible:

=============================== warnings summary ===============================
tests/automatic/pytests/test_pipeline.py:35
  /builds/asapo/asapo/tests/automatic/pytests/test_pipeline.py:35: PytestUnknownMarkWarning: Unknown pytest.mark.compatible - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.compatible
tests/automatic/pytests/test_pipeline.py:88
  /builds/asapo/asapo/tests/automatic/pytests/test_pipeline.py:88: PytestUnknownMarkWarning: Unknown pytest.mark.compatible - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.compatible
tests/automatic/pytests/test_pipeline.py:120
  /builds/asapo/asapo/tests/automatic/pytests/test_pipeline.py:120: PytestUnknownMarkWarning: Unknown pytest.mark.compatible - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.compatible
tests/automatic/pytests/test_pipeline.py:188
  /builds/asapo/asapo/tests/automatic/pytests/test_pipeline.py:188: PytestUnknownMarkWarning: Unknown pytest.mark.compatible - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.compatible
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 33 passed, 4 warnings in 61.30s (0:01:01) ===================

source: https://gitlab.desy.de/asapo/asapo/-/jobs/616887#L358

This commit registers the marker as suggested on https://docs.pytest.org/en/stable/how-to/mark.html#registering-marks, which removes the warning.

Merge request reports

Loading