Skip to content

Commit 4229684

Browse files
committed
fix test
1 parent 113803a commit 4229684

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/read/test_read.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def test_read_target_time(db_session):
114114
assert forecast_read is not None
115115
assert forecast_read.location.gsp_id == f.location.gsp_id
116116

117+
assert len(forecast_read.forecast_values_latest) == 1
118+
117119

118120
def test_get_forecast_values(db_session, forecasts):
119121

@@ -341,4 +343,3 @@ def test_update_latest_input_data_last_updated_freeze_no_data(db_session):
341343
input_data_last_updated = get_latest_input_data_last_updated(session=db_session)
342344
assert input_data_last_updated.pv.replace(tzinfo=None) == now.replace(tzinfo=None)
343345
assert input_data_last_updated.gsp.replace(tzinfo=None) == datetime(1960, 1, 1)
344-
assert len(forecast_read.forecast_values_latest) == 1

0 commit comments

Comments
 (0)