Replies: 1 comment 4 replies
-
Without seeing more of the code we can only guess |
Beta Was this translation helpful? Give feedback.
4 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.
-
Hey,
I need help with a problem, that I'm unable to solve by myself. I've implemented a test broken down in several methods, like in this example: https://docs.pytest.org/en/6.2.x/fixture.html#running-multiple-assert-statements-safely
I'm currently trying to parametrize that test so that the class is "executed" twice with different parameters. Each run requires the class (and especially the fixture to prepare the test) to be run independently - meaning the fixture have to be torn down...
I was able to parametrize the test by using
@pytest.mark.parametrize("par" ("foo", "bar"), indirect=True)
and writing a fixture with the namepar
. But then the teardown of the fixtures does not happen in between.Does somebody know how to do this?
Thanks!
Tilman
Beta Was this translation helpful? Give feedback.
All reactions