south ingest test fixes
@@ -313,6 +313,8 @@ class TestIngest:
Ingest._started = True
mocker.patch.object(Ingest, "_write_statistics", return_value=mock_coro())
mocker.patch.object(Ingest, "_insert_readings", return_value=mock_coro())
+ mocker.patch.object(MicroserviceManagementClient, "__init__", return_value=None)
+ mocker.patch.object(MicroserviceManagementClient, "create_asset_tracker_event", return_value=None)
assert 0 == len(Ingest._readings_lists[0])
assert 'PUMP1' not in list(Ingest._sensor_stats.keys())
@@ -498,6 +500,9 @@ class TestIngest:
Ingest._started = True
mocker.patch.object(Ingest, "_write_statistics", return_value=mock_coro())
mocker.patch.object(Ingest, "_insert_readings", return_value=mock_coro())
+ mocker.patch.object(MicroserviceManagementClient, "__init__", return_value=None)
+ mocker.patch.object(MicroserviceManagementClient, "create_asset_tracker_event", return_value=None)
+
assert 0 == len(Ingest._readings_lists[0])
assert 'PUMP1' not in list(Ingest._sensor_stats.keys())
