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

[BUG] Tests returning values #3597

Closed
timothy-nunn opened this issue Mar 20, 2025 · 0 comments · Fixed by #3607
Closed

[BUG] Tests returning values #3597

timothy-nunn opened this issue Mar 20, 2025 · 0 comments · Fixed by #3607
Assignees

Comments

@timothy-nunn
Copy link
Contributor

timothy-nunn commented Mar 20, 2025

Tests should not return any value and should only make asserts. This will cause an issue in the future:

/home/ubuntu/PROCESS/.venv/lib/python3.10/site-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: 
Expected None, but unit/test_mfile2dict.py::test_value_read returned True, which will be an error in a 
future version of pytest.  Did you mean to use `assert` instead of `return`?
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 a pull request may close this issue.

2 participants