(self, cmd, session_id=None)
| 55 | self.sock.close() |
| 56 | |
| 57 | def send(self, cmd, session_id=None): |
| 58 | req = {"type": "debug_command", "id": 1, "command": cmd} |
| 59 | if session_id: |
| 60 | req["session_id"] = session_id |
| 61 | self.sock.send((json.dumps(req) + '\n').encode()) |
| 62 | data = self.sock.recv(65536).decode() |
| 63 | resp = json.loads(data) |
| 64 | return resp.get('ok'), resp.get('output', '') |
| 65 | |
| 66 | def run_tests(client, providers): |
| 67 | results = {"passed": 0, "failed": 0} |
no test coverage detected