(mock)
| 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") |
nothing calls this directly
no test coverage detected