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

Fix test warning #951

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Fix test warning #951

merged 1 commit into from
Nov 22, 2023

Conversation

jairhenrique
Copy link
Contributor

pytest assumes router function with test prefix as a test.. but it's not.

tests/test_request.py::test_schema
  /envs/django-ninja/lib/python3.12/site-packages/_pytest/python.py:198: PytestReturnNotNoneWarning: Expected None, but tests/test_request.py::test_schema returned 'ok', which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

@vitalik vitalik merged commit 7b9fe7e into vitalik:master Nov 22, 2023
39 of 40 checks passed
@jairhenrique jairhenrique deleted the test-warning branch November 22, 2023 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants