MCPcopy Create free account
hub / github.com/alphagov/notifications-api / dummy_function

Function dummy_function

tests/app/test_utils.py:148–154  ·  view source on GitHub ↗
(foo, bar=123, session=mock_default_session)

Source from the content-addressed store, hash-verified

146
147 @retryable_query(default_retry_attempts=2, exception_cls=_ExampleException)
148 def dummy_function(foo, bar=123, session=mock_default_session):
149 assert foo == "baz"
150 assert bar == 123
151
152 session.execute(321)
153
154 raise _ExampleException("example reason")
155
156 with pytest.raises(_ExampleException):
157 dummy_function("baz", session=mock_explicit_session)

Calls 1

_ExampleExceptionClass · 0.85

Tested by

no test coverage detected