Class level fixtures are not exeucting when using pytest-rerunfailure #14039
Unanswered
GangadharUppin
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi,
Could you pls help me to resolve some issue i m facing.
import pytest
@pytest.mark.usefixtures("setup_class")
class TestClassOne:
@pytest.mark.usefixtures("setup_class")
class TestClassTwo:
This is my code
when i run test case using pytest -vs --reruns 1 --reruns-delay 2
test_two_fail will fail even in the rerun as expected.
Once this test is failed and exeucting TestClassTwo
i m getting error like "AttributeError: 'TestClassTwo' object has no attribute 'var'"
wht i m getting this issue ?
if i run pytest -vs it perfectly works fine.
Beta Was this translation helpful? Give feedback.
All reactions