Skip to content

Commit

Permalink
test: ignoring id in comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
amunchet committed Oct 24, 2023
1 parent d7cf887 commit 2b7b9e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/test/test_03_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,9 @@ def test_insert_metric(setup):
assert len(c) == 1
for item in sample_data["metrics"][0]:
print(item)
if item == "timestamp":
if item == "_id":
pass
elif item == "timestamp":
assert c[0][item].replace(microsecond=0, second=0) == sample_data["metrics"][0][item].replace(microsecond=0,second=0)
else:
assert c[0][item] == sample_data["metrics"][0][item]
Expand Down

0 comments on commit 2b7b9e1

Please sign in to comment.