Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytest marker warning #5720

Merged
merged 3 commits into from
Sep 9, 2019
Merged

Conversation

mjpieters
Copy link
Contributor

Description

In pytest 4.5 and newer, markers that have not been configured in the pytest.ini [markers] section result in a warning or error. Register the celery marker (with documentation) to silence these.

Fixes #5719

mjpieters and others added 3 commits September 9, 2019 14:31
In pytest 4.5 and newer, markers that have not been configured in the pytest.ini `[markers]` section [result in a warning or error](https://docs.pytest.org/en/latest/mark.html#raising-errors-on-unknown-marks). Register the celery marker (with documentation) to silence these.

Fixes celery#5719
@auvipy auvipy added this to the 4.4.0 milestone Sep 9, 2019
@auvipy auvipy merged commit 6e91e94 into celery:master Sep 9, 2019
@auvipy
Copy link
Member

auvipy commented Sep 9, 2019

thanks a lot!

@mjpieters mjpieters deleted the pytest_marker_warning branch September 9, 2019 18:40
jeyrce pushed a commit to jeyrce/celery that referenced this pull request Aug 25, 2021
* Register pytest.mark.celery as a valid marker

In pytest 4.5 and newer, markers that have not been configured in the pytest.ini `[markers]` section [result in a warning or error](https://docs.pytest.org/en/latest/mark.html#raising-errors-on-unknown-marks). Register the celery marker (with documentation) to silence these.

Fixes celery#5719

* Add a unit test showing no warnings are issued

* Fix pydocstyle warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants