-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Description
Running pytest emits PytestUnknownMarkWarning because tests use the marker @pytest.mark.integration, but the marker is not registered in the pytest configuration.
This results in noisy output during local development and CI runs.
Expected Behavior
- The
integrationmarker should be registered in the pytest configuration. pytestshould recognize@pytest.mark.integrationwithout emitting warnings.
Actual Behavior
pytestraisesPytestUnknownMarkWarningfor tests using@pytest.mark.integration.
Motivation
Unregistered markers create unnecessary warning noise and may hide real warnings or errors in CI logs.
Suggested Fix
Register the marker in pyproject.toml under [tool.pytest.ini_options].
Example:
[tool.pytest.ini_options]
markers = [
"integration: mark tests as integration tests"
]Impact
- Removes
PytestUnknownMarkWarning - Cleaner CI and local test output
- Better clarity when real warnings occur
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels