Relative Content

Tag Archive for pytest

Supporting multiple fixture scopes per session?

We would like to be able to allow our users to define the lifetime of very specific objects, wrapped around an annotation provided by an inhouse framework. Is there a way to “update” a fixture’s scope based on a user configuration?

Supporting multiple fixture scopes per session?

We would like to be able to allow our users to define the lifetime of very specific objects, wrapped around an annotation provided by an inhouse framework. Is there a way to “update” a fixture’s scope based on a user configuration?

Supporting multiple fixture scopes per session?

We would like to be able to allow our users to define the lifetime of very specific objects, wrapped around an annotation provided by an inhouse framework. Is there a way to “update” a fixture’s scope based on a user configuration?

How can I directly jump to a failed test using pytest?

I open a terminal and run pytest in order to note the filename and linenumber of a failed test.
I then manually open the file and goto to the line.
I’m pretty sure there is an automatic solution though don’t know where to start.