You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks, this would make sense, probably with a line explaining it.
If you want to make a PR, go ahead - otherwise this gets at the end of my personal backlog 😀
Is your feature request related to a problem? Please describe.
Many of the
pytest
-oriented examples in https://pytest-pyfakefs.readthedocs.io/en/stable/usage.html use afake_fs
fixture in the test signature, but don't actually use it in the test body.Here's a more specific example: https://pytest-pyfakefs.readthedocs.io/en/stable/usage.html#access-to-files-in-the-real-file-system
Multiple linters detect this line as unused code:
pylint
:invalid-name
gets emitted on test functions or methodsflake8-unused-arguments
:ARG001
gets emitted if test function, orARG002
gets emitted if test methodDescribe the solution you'd like
This can be ameliorated with using
pytest.mark.usefixtures
decorator:Can we move code snippets in the
pyfakefs
docs to usepytest.mark.usefixtures
?The text was updated successfully, but these errors were encountered: