def do_server_loop(root_path, in_queue, out_queue): remote = TestRemote(in_queue, out_queue) with try_except_send_remote(remote): server_sync(Archive(root_path), remote)
def chat_server(self, test_chat): mock_remote = MockRemote(test_chat) server_sync(Archive(self.tmp_path), mock_remote) mock_remote.done()