@@ -170,7 +170,7 @@ async def test_set_and_get_info_single_config(
170170 db_store_parameterized : DatabasePushNotificationConfigStore ,
171171):
172172 """Test setting and retrieving a single configuration."""
173- task_id = 'task-1 '
173+ task_id = '1c3a35ab-e35c-49d8-a37b-7988f5a2ecb7 '
174174 config = PushNotificationConfig (id = 'config-1' , url = 'http://example.com' )
175175
176176 await db_store_parameterized .set_info (task_id , config )
@@ -186,7 +186,7 @@ async def test_set_and_get_info_multiple_configs(
186186):
187187 """Test setting and retrieving multiple configurations for a single task."""
188188
189- task_id = 'task-1 '
189+ task_id = '1c3a35ab-e35c-49d8-a37b-7988f5a2ecb7 '
190190 config1 = PushNotificationConfig (id = 'config-1' , url = 'http://example.com/1' )
191191 config2 = PushNotificationConfig (id = 'config-2' , url = 'http://example.com/2' )
192192
@@ -204,7 +204,7 @@ async def test_set_info_updates_existing_config(
204204 db_store_parameterized : DatabasePushNotificationConfigStore ,
205205):
206206 """Test that setting an existing config ID updates the record."""
207- task_id = 'task-1 '
207+ task_id = '1c3a35ab-e35c-49d8-a37b-7988f5a2ecb7 '
208208 config_id = 'config-1'
209209 initial_config = PushNotificationConfig (
210210 id = config_id , url = 'http://initial.url'
@@ -226,7 +226,7 @@ async def test_set_info_defaults_config_id_to_task_id(
226226 db_store_parameterized : DatabasePushNotificationConfigStore ,
227227):
228228 """Test that config.id defaults to task_id if not provided."""
229- task_id = 'task-1 '
229+ task_id = '1c3a35ab-e35c-49d8-a37b-7988f5a2ecb7 '
230230 config = PushNotificationConfig (url = 'http://example.com' ) # id is None
231231
232232 await db_store_parameterized .set_info (task_id , config )
@@ -252,7 +252,7 @@ async def test_delete_info_specific_config(
252252 db_store_parameterized : DatabasePushNotificationConfigStore ,
253253):
254254 """Test deleting a single, specific configuration."""
255- task_id = 'task-1 '
255+ task_id = '1c3a35ab-e35c-49d8-a37b-7988f5a2ecb7 '
256256 config1 = PushNotificationConfig (id = 'config-1' , url = 'http://a.com' )
257257 config2 = PushNotificationConfig (id = 'config-2' , url = 'http://b.com' )
258258
@@ -272,7 +272,7 @@ async def test_delete_info_all_for_task(
272272):
273273 """Test deleting all configurations for a task when config_id is None."""
274274
275- task_id = 'task-1 '
275+ task_id = '1c3a35ab-e35c-49d8-a37b-7988f5a2ecb7 '
276276 config1 = PushNotificationConfig (id = 'config-1' , url = 'http://a.com' )
277277 config2 = PushNotificationConfig (id = 'config-2' , url = 'http://b.com' )
278278
@@ -291,7 +291,9 @@ async def test_delete_info_not_found(
291291):
292292 """Test that deleting a non-existent config does not raise an error."""
293293 # Should not raise
294- await db_store_parameterized .delete_info ('task-1' , 'non-existent-config' )
294+ await db_store_parameterized .delete_info (
295+ '1c3a35ab-e35c-49d8-a37b-7988f5a2ecb7' , 'non-existent-config'
296+ )
295297
296298
297299@pytest .mark .asyncio
@@ -453,7 +455,7 @@ async def test_set_and_get_info_multiple_configs_no_key(
453455 )
454456 await store .initialize ()
455457
456- task_id = 'task-1 '
458+ task_id = '1c3a35ab-e35c-49d8-a37b-7988f5a2ecb7 '
457459 config1 = PushNotificationConfig (id = 'config-1' , url = 'http://example.com/1' )
458460 config2 = PushNotificationConfig (id = 'config-2' , url = 'http://example.com/2' )
459461
@@ -479,7 +481,7 @@ async def test_data_is_not_encrypted_in_db_if_no_key_is_set(
479481 )
480482 await store .initialize ()
481483
482- task_id = 'task-1 '
484+ task_id = '1c3a35ab-e35c-49d8-a37b-7988f5a2ecb7 '
483485 config = PushNotificationConfig (id = 'config-1' , url = 'http://example.com/1' )
484486 plain_json = config .model_dump_json ()
485487
0 commit comments