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 Jan 13, 2025
1 parent fd8cd26 commit 7aa5f24
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 @@ -69,8 +70,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 7aa5f24

Please sign in to comment.