MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / tearDown

Method tearDown

examples/boilerplates/base_test_case.py:13–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11 # <<< Run custom setUp() code for tests AFTER the super().setUp() >>>
12
13 def tearDown(self):
14 self.save_teardown_screenshot() # If test fails, or if "--screenshot"
15 if self.has_exception():
16 # <<< Run custom code if the test failed. >>>
17 pass
18 else:
19 # <<< Run custom code if the test passed. >>>
20 pass
21 # (Wrap unreliable tearDown() code in a try/except block.)
22 # <<< Run custom tearDown() code BEFORE the super().tearDown() >>>
23 super().tearDown()
24
25 def login(self):
26 # <<< Placeholder. Add your code here. >>>

Callers 2

test_request_fixtureFunction · 0.45

Calls 2

has_exceptionMethod · 0.45

Tested by

no test coverage detected