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

Method _addSkip

seleniumbase/fixtures/base_case.py:17179–17190  ·  view source on GitHub ↗

This method should NOT be called directly from tests.

(self, result, test_case, reason)

Source from the content-addressed store, hash-verified

17177 )
17178
17179 def _addSkip(self, result, test_case, reason):
17180 """This method should NOT be called directly from tests."""
17181 addSkip = getattr(result, 'addSkip', None)
17182 if addSkip is not None:
17183 addSkip(test_case, reason)
17184 else:
17185 import warnings
17186 warnings.warn(
17187 "TestResult has no addSkip method! Skips not reported!",
17188 RuntimeWarning, 2
17189 )
17190 result.addSuccess(test_case)
17191
17192 def _callTestMethod(self, method):
17193 """This method should NOT be called directly from tests."""

Callers 1

runMethod · 0.95

Calls 1

addSuccessMethod · 0.45

Tested by

no test coverage detected