diff options
-rw-r--r-- | lab_control/test/mock_sds1000xe_server.py | 2 | ||||
-rw-r--r-- | lab_control/test/sds1000xe_test.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lab_control/test/mock_sds1000xe_server.py b/lab_control/test/mock_sds1000xe_server.py index f5a2b1a..1b72146 100644 --- a/lab_control/test/mock_sds1000xe_server.py +++ b/lab_control/test/mock_sds1000xe_server.py @@ -44,7 +44,7 @@ class MockSDS1000XEServer: self._clientSocket.close() def _handleRequest(self, request: str) -> str: - m = re.search(r"C(?P<channel>\d):(?P<opcode>\w{4})\?\s(?P<arg>\w+)", request) + m = re.search(r"C(?P<channel>\d):(?P<opcode>\w+)\?\s(?P<arg>\w+)", request) if not m: return None diff --git a/lab_control/test/sds1000xe_test.py b/lab_control/test/sds1000xe_test.py index ea48c87..0112c9f 100644 --- a/lab_control/test/sds1000xe_test.py +++ b/lab_control/test/sds1000xe_test.py @@ -34,7 +34,7 @@ def test_RMSMeasurement(uut, mockServer): checkFloatMeasurement(testCases, mockServer.setRMS, uut.measureRMS) def test_FrequencyMeasurement(uut, mockServer): - testCases = [(1, 16.23987), (2, 0.0), (3, -0.0164), (4, 10.1)] + testCases = [(1, 16.23987), (2, 0.0), (3, -0.0164), (4, 93489.15)] checkFloatMeasurement(testCases, mockServer.setFrequency, uut.measureFrequency) def test_invalidChannel(uut, mockServer): |