File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/service-library/tests Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,11 @@ async def test_task_filter_task_uuid(
7070):
7171 task_filter = _TestOwnerMetadata .model_validate (test_owner_metadata )
7272 task_uuid = TaskUUID (_faker .uuid4 ())
73- task_id = task_filter .model_dump_task_key (task_uuid )
74- assert OwnerMetadata .get_task_uuid (task_key = task_id ) == task_uuid
73+ task_key = task_filter .model_dump_task_key (task_uuid )
74+ assert OwnerMetadata .get_task_uuid (task_key = task_key ) == task_uuid
7575
7676
77- async def test_owner_metadata_task_id_dump_and_validate ():
77+ async def test_owner_metadata_task_key_dump_and_validate ():
7878
7979 class MyModel (OwnerMetadata ):
8080 int_ : int
@@ -100,8 +100,8 @@ class MyModel(OwnerMetadata):
100100 list_s = ["a" , "b" ],
101101 )
102102 task_uuid = TaskUUID (_faker .uuid4 ())
103- task_id = mymodel .model_dump_task_key (task_uuid )
104- mymodel_recreated = MyModel .model_validate_task_key (task_key = task_id )
103+ task_key = mymodel .model_dump_task_key (task_uuid )
104+ mymodel_recreated = MyModel .model_validate_task_key (task_key = task_key )
105105 assert mymodel_recreated == mymodel
106106
107107
You can’t perform that action at this time.
0 commit comments