-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
pytest.fail() fails for pytest and fails on report.html, but displayed as passed on a dashboard
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 2 replies
-
@webmoskal I wasn't able to reproduce. Can you try using self.fail()
instead and see if you get the correct results?
Beta Was this translation helpful? Give feedback.
All reactions
2 replies
-
E AttributeError: 'TestLogin' object has no attribute 'fail'
@pytest.mark.usefixtures("sb")
class TestLogin():
def test_fail(self):
self.fail()
Beta Was this translation helpful? Give feedback.
All reactions
-
Use sb.fail()
when using the SeleniumBase fixture format:
# "sb" pytest fixture test in a method with no class def test_sb_fixture_with_no_class(sb): sb.fail() # "sb" pytest fixture test in a method inside a class class Test_SB_Fixture: def test_sb_fixture_inside_class(self, sb): sb.fail()
Beta Was this translation helpful? Give feedback.
All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment