How to navigate to the fixture definition in Visual Studio Code? #9182
Unanswered
jonathanmach
asked this question in
Q&A
Replies: 1 comment 2 replies
-
In large projects with hundreds of fixtures, how to easily navigate to the file where each fixture lives? Something link Ctrl+click to jump to the fixture definition... |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I've been searching all over the internet for an answer to this question but I haven't found anything yet.
When
For example, in the following test, how to quickly go to the file which my
test_blogpost
fixture is defined so that I can examine its content?My fixtures live inside a
/tests/fixtures
module.My first thought was to manually import fixtures in my test_ files so that I can easily find where they are located. Is it a common practice?
I came across this VSCode extension: https://marketplace.visualstudio.com/items?itemName=Cameron.vscode-pytest. but it doesn't seem to work for me. Anyone using it successfully?
This article [Modularizing Pytest Fixtures] and this SO answer [In pytest, what is the use of conftest.py files?] were quite helpful.
Beta Was this translation helpful? Give feedback.
All reactions