Skip to content

Commit 16efa76

Browse files
committed
Try 2
1 parent 6d4dfb6 commit 16efa76

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

tests/stick_test_data.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@
55

66
pw_constants = importlib.import_module("plugwise_usb.constants")
77

8-
# test using utc timezone
9-
utc_now = datetime.now(tz=UTC).replace(tzinfo=UTC)
10-
utc_now_offset = datetime.now(tz=UTC).replace(tzinfo=UTC) + timedelta(
11-
days=1, hours=4, seconds=30
12-
)
8+
# test using utc timezone - 2025-04-03 22:00:00
9+
utc_now = datetime(
10+
2025, 4, 3, 22, 0, 0
11+
) # datetime.now(tz=UTC).replace(tzinfo=UTC)
12+
# utc_now_offset = datetime.now(tz=UTC).replace(tzinfo=UTC) + timedelta(
13+
# days=1, hours=4, seconds=30
14+
# )
1315

1416

1517
# generate energy log timestamps with fixed hour timestamp used in tests
16-
# 2025-04-03 22:00:00
17-
hour_timestamp = datetime(
18-
2025, 4, 3, 22, 0, 0
19-
) # utc_now.replace(minute=0, second=0, microsecond=0)
18+
hour_timestamp = utc_now.replace(minute=0, second=0, microsecond=0)
2019

2120
LOG_TIMESTAMPS = {}
2221
_one_hour = timedelta(hours=1)

0 commit comments

Comments
 (0)