Skip to content

Commit 1e91d03

Browse files
committed
tiask_id -> task_key @giancarloromeo
1 parent de46286 commit 1e91d03

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/service-library/tests/test_celery.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)