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

[async rest] Document how to see skipped tests #2203

Open
ohmayr opened this issue Sep 30, 2024 · 0 comments
Open

[async rest] Document how to see skipped tests #2203

ohmayr opened this issue Sep 30, 2024 · 0 comments
Assignees
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: process A process-related concern. May include testing, release, or the like.

Comments

@ohmayr
Copy link
Contributor

ohmayr commented Sep 30, 2024

Currently, we skip tests for async REST in the following way:

if not HAS_ASYNC_REST_EXTRA:
        pytest.skip("the library must be installed with the `async_rest` extra to test this feature.")

However, the message does not show up when the test is skipped during a nox session.

Investigate and document how to see the skip messages when a test is run in a nox session and skipped using pytest.skip. In some cases we should use mark.skipif: https://docs.pytest.org/en/stable/reference/reference.html#pytest-mark-skipif-ref.

@ohmayr ohmayr added type: process A process-related concern. May include testing, release, or the like. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

No branches or pull requests

1 participant