*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit dc9d9528 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Timebase: Fix mock worker for dummy testing.

parent 5f0b7a50
No related merge requests found
......@@ -13,7 +13,7 @@ class TimeBaseWorker(Worker):
from unittest import mock
self.client = mock.Mock()
# For mock client, specify return value for remote values.
self.client.recv.return_value = b"Rfreq:39195001|Rampl:236|Rout:1|Rpmon:0|Rpmfr:34|Rpmd:200|Rpmphc:0|Rswpm:0|Rswps:20000000|Rswpp:71000222|Rswpf:700|Rswpt:45000|Rfmon:0|Rfmdev:11|Rplson:0|Rplsfr:66|Rplsdt:50|Rffreq:32000000|Rfampl:156|Ramoffs:0|Rpcbtemp:6175|Rrefstat:0|Rreflev:-85|Rvcclev:2418"
self.client.recv.return_value = b"Rfreq:39195001|Rampl:236|Rout:1|Rpmon:0|Rpmfr:34|Rpmd:200|Rpmphc:0|Rswpm:0|Rswps:20000000|Rswpp:71000222|Rswpf:700|Rswpt:45000|Rfmon:0|Rfmdev:11|Rplson:0|Rplsfr:66|Rplsdt:50|Rffreq:32000000|Rfampl:156|Ramoffs:0|Rpcbtemp:6175|Rrefstat:0|Rreflev:-85|Rvcclev:2418\r\n"
break
try:
self.client = socket.create_connection((self.hostname,self.port), timeout=2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment