MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / assertWarnings

Method assertWarnings

tests/Framework.py:526–529  ·  view source on GitHub ↗
(self, warning, *expecteds)

Source from the content-addressed store, hash-verified

524 self.assertWarnings(warning, expected)
525
526 def assertWarnings(self, warning, *expecteds):
527 actual = [(type(message), type(message.message), message.message.args) for message in warning.warnings]
528 expected = [(warnings.WarningMessage, DeprecationWarning, (expected,)) for expected in expecteds]
529 self.assertSequenceEqual(actual, expected)
530
531 @contextlib.contextmanager
532 def ignoreWarning(self, category=Warning, module=""):

Callers 2

assertWarningMethod · 0.95
testAppAuthenticationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected