Skip to content

Commit

Permalink
Fix a test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kgodlewski committed Dec 17, 2024
1 parent 6befc13 commit 0f9d36c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/test_attribute.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import time
from datetime import datetime
from unittest.mock import Mock

Expand Down Expand Up @@ -68,8 +69,9 @@ def test_tags(run, store):


def test_series(run, store):
run["my/series"].append(1, step=1, timestamp=10)
store.log.assert_called_with(metrics={"my/series": 1}, step=1, timestamp=10)
now = time.time()
run["my/series"].append(1, step=1, timestamp=now)
store.log.assert_called_with(metrics={"my/series": 1}, step=1, timestamp=now)

run["my/series"].append({"foo": 1, "bar": 2}, step=2)
store.log.assert_called_with(metrics={"my/series/foo": 1, "my/series/bar": 2}, step=2, timestamp=None)
Expand Down

0 comments on commit 0f9d36c

Please sign in to comment.