Skip to content

Commit 554c01b

Browse files
committed
fix: fix logging test that wasn't using a supported datetime format
1 parent 07810ea commit 554c01b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def filter(self, record):
7777
assert caplog.record_tuples == [("markus", 20, "METRICS|incr|foo.blue|2|")]
7878

7979
def test_utc_timezone_incr(self, caplog, time_machine):
80-
time_machine.move_to("2017-03-06 16:30:00 +0000", tick=False)
80+
time_machine.move_to("2017-03-06T16:30:00+00:00", tick=False)
8181
caplog.set_level("DEBUG")
8282
rec = MetricsRecord("incr", key="foo", value=10, tags=["key1:val", "key2:val"])
8383
lm = LoggingMetrics(options={"timestamp_mode": "utc"})

0 commit comments

Comments
 (0)