MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / restart_mock

Function restart_mock

tests/helpers.py:978–988  ·  view source on GitHub ↗
(mock)

Source from the content-addressed store, hash-verified

976
977
978def restart_mock(mock) -> None:
979 try:
980 print("\nR.I.P. mock...")
981 mock.stop()
982 time.sleep(3)
983 mock.start()
984 return mock
985 except Exception:
986 import traceback
987 traceback.print_exc()
988 raise CouchbaseTestEnvironmentException('Error trying to restart mock')
989
990
991@dataclass

Callers

nothing calls this directly

Calls 4

stopMethod · 0.45
sleepMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected