Commit f533a8f5 authored by Swann Perarnau's avatar Swann Perarnau

[fix] Properly test sensor results

The previous assert could not be valid, causing the test to fail all the
time.
parent 90efdac3
......@@ -13,4 +13,6 @@ def sensor_manager():
def test_sensor_update_returns_valid_data(sensor_manager):
sensor_manager.start()
data = sensor_manager.do_update()
assert 'total_power' in data
assert 'energy' in data
assert 'power' in data['energy']
assert 'total' in data['energy']['power']
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment