MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / stub_runner

Function stub_runner

python/test_tools/fixtures/common.py:193–205  ·  view source on GitHub ↗

Encapsulates the StubRunner in a context manager so its run function is called when the context is exited.

()

Source from the content-addressed store, hash-verified

191
192@pytest.fixture
193def stub_runner():
194 """
195 Encapsulates the StubRunner in a context manager so its run function is called
196 when the context is exited.
197 """
198
199 @contextlib.contextmanager
200 def _runner(err, stop):
201 runner = StubRunner(err, stop)
202 yield runner
203 runner.run()
204
205 return _runner
206
207
208class InputMocker:

Callers 15

test_get_sechub_controlsFunction · 0.85
test_clear_stagingFunction · 0.85
test_get_reportFunction · 0.85
test_create_rest_apiFunction · 0.85
test_poll_notificationFunction · 0.85
test_do_label_detectionFunction · 0.85
test_do_face_detectionFunction · 0.85
test_do_person_trackingFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_get_sechub_controlsFunction · 0.68
test_clear_stagingFunction · 0.68
test_get_reportFunction · 0.68
test_create_rest_apiFunction · 0.68
test_poll_notificationFunction · 0.68
test_do_label_detectionFunction · 0.68
test_do_face_detectionFunction · 0.68
test_do_person_trackingFunction · 0.68