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
Gret project. I am trying to prototype individual tests without waiting the 15s to spin up our entire app with necessary db connections etc - ours is a large project. It looks like a notebook would be great for this.
How can I get my notebook to behave as if it is in a certain subfolder in our test suite? I need to gain access to all the fixtures in the current folder and all folders above, as pytest normally does. Example:
project_root/tests/conftest.py project_root/tests/module_a/conftest.py project_root/tests/module_a/component_1/conftest.py project_root/tests/module_a/component_1/test_mymethod.py <-- I want my notebook to run as if it's in this folder, inheriting fixtures from all three conftest.py.
How to do that?
The text was updated successfully, but these errors were encountered:
Gret project. I am trying to prototype individual tests without waiting the 15s to spin up our entire app with necessary db connections etc - ours is a large project. It looks like a notebook would be great for this.
How can I get my notebook to behave as if it is in a certain subfolder in our test suite? I need to gain access to all the fixtures in the current folder and all folders above, as pytest normally does. Example:
project_root/tests/conftest.py
project_root/tests/module_a/conftest.py
project_root/tests/module_a/component_1/conftest.py
project_root/tests/module_a/component_1/test_mymethod.py
<-- I want my notebook to run as if it's in this folder, inheriting fixtures from all threeconftest.py
.How to do that?
The text was updated successfully, but these errors were encountered: