3
0
Fork 0

fix: use true UUID type for Upgrades table primary key

hopefully can use this everywhere soon but let's start slow and test
This commit is contained in:
Lance Edgar 2024-11-30 19:59:59 -06:00
parent 8b6e32145c
commit 028c64fc12
9 changed files with 274 additions and 6 deletions

View file

@ -5,6 +5,7 @@ import shutil
import sys
import tempfile
import warnings
import uuid as _uuid
from unittest import TestCase
from unittest.mock import patch, MagicMock
@ -385,6 +386,10 @@ app_title = WuttaTest
uuid = self.app.make_uuid()
self.assertEqual(len(uuid), 32)
def test_make_true_uuid(self):
uuid = self.app.make_true_uuid()
self.assertIsInstance(uuid, _uuid.UUID)
def test_progress_loop(self):
def act(obj, i):