(mock)
| 976 | |
| 977 | |
| 978 | def 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 |
nothing calls this directly
no test coverage detected