MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / device_simulator

Function device_simulator

tests/integration/conftest.py:129–140  ·  view source on GitHub ↗

Provide a device simulator for testing. Automatically starts and stops the simulator.

()

Source from the content-addressed store, hash-verified

127
128@pytest.fixture
129def device_simulator():
130 """
131 Provide a device simulator for testing.
132
133 Automatically starts and stops the simulator.
134 """
135 sim = DeviceSimulator(host="127.0.0.1", port=9000, protocol="tcp")
136 sim.start()
137
138 yield sim
139
140 sim.stop()
141
142
143@pytest.fixture

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
stopMethod · 0.95
DeviceSimulatorClass · 0.90

Tested by

no test coverage detected