Skip to content

Commit

Permalink
Extend tick time
Browse files Browse the repository at this point in the history
Hopefully this will get tests passing in CI.
  • Loading branch information
wbyoung committed Jun 23, 2024
1 parent ddb5812 commit 6139e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async def test_sensor_update(

assert mock_watersmart_client.async_get_hourly_data.call_count == 1

Check failure on line 224 in tests/test_sensor.py

View workflow job for this annotation

GitHub Actions / build (3.12)

test_sensor_update AssertionError: assert 2 == 1 + where 2 = <AsyncMock name='WaterSmartClient().async_get_hourly_data' spec='function' id='139759306344448'>.call_count + where <AsyncMock name='WaterSmartClient().async_get_hourly_data' spec='function' id='139759306344448'> = <NonCallableMagicMock name='WaterSmartClient()' spec='WaterSmartClient' id='139759285610224'>.async_get_hourly_data

async_fire_time_changed(hass, dt.datetime.now() + dt.timedelta(hours=1))
async_fire_time_changed(hass, dt.datetime.now() + dt.timedelta(hours=1, minutes=5))
await hass.async_block_till_done()

assert mock_watersmart_client.async_get_hourly_data.call_count == 2
Expand Down

0 comments on commit 6139e7a

Please sign in to comment.