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

Method restart_mock

tests/couchbase_config.py:197–207  ·  view source on GitHub ↗
(mock)

Source from the content-addressed store, hash-verified

195
196 @staticmethod
197 def restart_mock(mock) -> None:
198 try:
199 print("\nR.I.P. mock...")
200 mock.stop()
201 time.sleep(3)
202 mock.start()
203 return mock
204 except Exception:
205 import traceback
206 traceback.print_exc()
207 raise CouchbaseTestEnvironmentException('Error trying to restart mock')
208
209
210@pytest.fixture(scope="session")

Callers

nothing calls this directly

Calls 4

stopMethod · 0.45
sleepMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected