Skip to content

Commit

Permalink
Fix test_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Jun 21, 2024
1 parent bacc72d commit fda2051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/models/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ def test_has_version_of_7(self):
def test_can_be_deterministic(self):
time_component = 1718800371653
pnrg = Random(42)
uuid = uuid7(unix_ms_time=time_component, seeded_random=pnrg)
uuid = uuid7(unix_ms_time=time_component, random=pnrg)
self.assertEqual(uuid, UUID("0190307c-4fc5-7a3b-8006-671a1c80317f"))

def test_can_parse_date_string(self):
time_component = "2024-06-19T13:33:37"
pnrg = Random(42)
uuid = uuid7(unix_ms_time=time_component, seeded_random=pnrg)
uuid = uuid7(unix_ms_time=time_component, random=pnrg)
self.assertEqual(uuid, UUID("019030b3-ef68-7a3b-8006-671a1c80317f"))

0 comments on commit fda2051

Please sign in to comment.