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

job manager tests: fail on any warning #662

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

soxofaan
Copy link
Member

@soxofaan soxofaan commented Nov 14, 2024

Attempt to harden the job manager tests: fail hard on any warning (except our own deprecation warnings)

related to #641, #656

@@ -77,6 +77,8 @@ def sleep_mock():
yield sleep


@pytest.mark.filterwarnings("default:.*`output_file` argument is deprecated.*:DeprecationWarning")
@pytest.mark.filterwarnings("error")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently it is also possible to set these markers at module level, (instead of only on this test class), with the pytestmark module global var according to https://docs.pytest.org/en/stable/how-to/capture-warnings.html#pytest-mark-filterwarnings

@soxofaan soxofaan changed the title job manager tests: fail on all warnings job manager tests: fail on any warning Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant