Skip to content

Context managers instead of fixtures? #9774

Discussion options

You must be logged in to vote

Thanks @RonnyPfannschmidt @The-Compiler for your input 👍

Some reflections:

  • I definitively agree on forfeiting what you have mentioned is not a good trade-off.
  • I've tried all existing plugins that you find my searching "pytest" in vscode, and they don't work for me (and I'm not alone). Have you gotten any of these to work?
  • I am wary to say that forfeiting "go to def" and type hinting is actually something we'd be okay with. This severely hampers working efficiently and confidently with writing and maintaining tests.

The overall sum of this all is that I think pytest's strengths still outweigh the weaknesses/shortcomings of IDE/editor (plugin) integrations.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@nicoddemus
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@nicoddemus
Comment options

@fredrikaverpil
Comment options

@nicoddemus
Comment options

@The-Compiler
Comment options

Answer selected by fredrikaverpil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants