pytest runtime error #4467
Unanswered
JudeMcbeath
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You may want to provide a minimal reproducible example. Why is it important to provide a minimal reproducible example? But, I would put forward the suggestion of refactoring the code✨. Assuming you use VSCode, right-click and select "Refactor" (or use Ctrl+Shift+R if you are fancy), then select "Move symbol to..." or "Move symbol to new file". As long as you do this, VSCode automatically changes all instances of the function to import the new file (minus a few mistakes). ![]() Advantages are:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
im trying to test some functions in my app using pytest and i keep getting this error:
when i run using the command:
pytest -s -m tests/test_functions.py
in my main.py i have this guard:
Im not sure where to go from here. any help is appreciated
Beta Was this translation helpful? Give feedback.
All reactions