(self)
| 399 | self.client_process = Popen(pytest_command) |
| 400 | |
| 401 | def server(self) -> None: |
| 402 | pytest_command = [ |
| 403 | "pytest", str(self.pytest_test_path(self.test_case)), |
| 404 | "--server", |
| 405 | *self.server_extra_parameters |
| 406 | ] |
| 407 | |
| 408 | if self.transport == "tcp": |
| 409 | pytest_command.extend(["--port", str(self.tcp_port)]) |
| 410 | elif self.transport == "serial" and self.serial_port: |
| 411 | pytest_command.extend(["--serial", self.serial_port]) |
| 412 | else: |
| 413 | raise ValueError |
| 414 | |
| 415 | self.server_process = Popen(pytest_command) |
| 416 | sleep(0.5) |
| 417 | |
| 418 | def pytest_test_path(self, test_case: str) -> Path: |
| 419 | return self.test_dir.joinpath("python_impl_tests").joinpath(test_case) |
nothing calls this directly
no test coverage detected