Skip to content

Commit

Permalink
Fixed test names. Added No checksum test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjacovich committed Oct 10, 2024
1 parent 2adb9fe commit dc70e89
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_scix_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
import SciXPipelineUtils.scix_id as scixid


class TestSciXUUIDImplementation(TestCase):
def test_generate_uuid7(self):
class TestSciXIDImplementation(TestCase):
def test_generate_scixid(self):
test_id = scixid.encode(1000)
self.assertEqual(test_id, "0000-0000-0Z81")
test_int = scixid.decode(test_id)
self.assertEqual(test_int, 1000)

def test_generate_scixid_no_checksum(self):
test_id = scixid.encode(1000, checksum=False)
self.assertEqual(test_id, "0000-0000-00Z8")
test_int = scixid.decode(test_id, checksum=False)
self.assertEqual(test_int, 1000)

0 comments on commit dc70e89

Please sign in to comment.