MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / server

Method server

test/run_unit_tests.py:401–416  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

pytest_test_pathMethod · 0.95

Tested by

no test coverage detected