Replies: 1 comment
-
it works for me
please provide your outputs for the invocations |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Following the example shown here:
https://docs.pytest.org/en/stable/example/simple.html#package-directory-level-fixtures-setups
I have set a testing app with the following(as shown in the link):
content of a/conftest.py
content of a/test_db.py
content of a/test_db2.py
When I run pytest -s using the global pytest installed on my pc I get the expected behavior(conftest.py fixture is being discovered and a single instance of DB class is invoked)
But.. when I call the same pytest within a venv I receive an error:
fixture 'db' not found
I have spent hours on hours trying to figure out why, and how to fix it
Beta Was this translation helpful? Give feedback.
All reactions