Skip to content

Commit

Permalink
uuid1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmshn committed Jan 18, 2024
1 parent 5c0f7db commit e5cf7a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_uuid.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def test_uuid1():
from uuid import UUID

from jobflow.utils.uuid import get_timestamp_from_uuid, suuid

uuid = suuid("uuid1")
assert UUID(uuid).version == 1

assert isinstance(get_timestamp_from_uuid(uuid), float)

0 comments on commit e5cf7a6

Please sign in to comment.