Skip to content

Commit f75c183

Browse files
change in timezones
1 parent 9974989 commit f75c183

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tests/integration/test_save_nl_and_be_to_data_platform.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"target_datetime_utc": [
3636
pd.to_datetime("2025-01-01T00:00:00Z"),
3737
pd.to_datetime("2025-01-01T01:00:00Z"),
38-
pd.to_datetime("2025-01-01T00:00:00Z"),
39-
pd.to_datetime("2025-01-01T01:00:00Z"),
38+
pd.to_datetime("2025-01-01T02:00:00Z"),
39+
pd.to_datetime("2025-01-01T03:00:00Z"),
4040
],
4141
"solar_generation_kw": [5000.0, 6000.0, 2500.0, 3000.0],
4242
"region_id": [0, 0, 1, 1],
@@ -171,16 +171,8 @@ async def test_save_generation_to_data_platform(client, config):
171171
energy_source=dp.EnergySource.SOLAR,
172172
pivot_timestamp_utc=pivot_time
173173
)
174-
get_location_response = await client.get_location(get_location_request)
175-
176-
# Retry loop to handle potential eventual consistency in CI
177-
# for i in range(10):
178-
# if get_location_response.effective_capacity_watts == expected_capacity:
179-
# break
180-
# print(f"DEBUG: Retry {i+1}/10 - Capacity mismatch. Got {get_location_response.effective_capacity_watts}, expected {expected_capacity}")
181-
# await asyncio.sleep(1.0)
182-
183-
assert get_location_response.effective_capacity_watts == 100000000000, \
174+
get_location_response = await client.get_location(get_location_request)
175+
assert get_location_response.effective_capacity_watts == expected_capacity, \
184176
f"Capacity not updated correctly for {location_name}"
185177

186178

0 commit comments

Comments
 (0)