@@ -17,7 +17,7 @@ def test__device_repository__add_two_keys(device: Device, repository: DeviceRepo
1717 id = device .id ,
1818 )
1919 second_device .add_key (
20- key_value = "ABC: 1234567890" , key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID
20+ key_value = "1234567890" , key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID
2121 )
2222 repository .write (second_device )
2323 time .sleep (1 )
@@ -28,29 +28,23 @@ def test__device_repository__add_two_keys(device: Device, repository: DeviceRepo
2828 id = device .id ,
2929 ).keys == [
3030 DeviceKey (key_type = DeviceKeyType .PRODUCT_ID , key_value = "P.WWW-XXX" ),
31- DeviceKey (
32- key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID , key_value = "ABC:1234567890"
33- ),
31+ DeviceKey (key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID , key_value = "1234567890" ),
3432 ]
3533 assert repository .read (
3634 product_team_id = device .product_team_id ,
3735 product_id = device .product_id ,
3836 id = "P.WWW-XXX" ,
3937 ).keys == [
4038 DeviceKey (key_type = DeviceKeyType .PRODUCT_ID , key_value = "P.WWW-XXX" ),
41- DeviceKey (
42- key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID , key_value = "ABC:1234567890"
43- ),
39+ DeviceKey (key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID , key_value = "1234567890" ),
4440 ]
4541 assert repository .read (
4642 product_team_id = device .product_team_id ,
4743 product_id = device .product_id ,
48- id = "ABC: 1234567890" ,
44+ id = "1234567890" ,
4945 ).keys == [
5046 DeviceKey (key_type = DeviceKeyType .PRODUCT_ID , key_value = "P.WWW-XXX" ),
51- DeviceKey (
52- key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID , key_value = "ABC:1234567890"
53- ),
47+ DeviceKey (key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID , key_value = "1234567890" ),
5448 ]
5549
5650
@@ -69,7 +63,7 @@ def test__device_repository__delete_key(
6963 id = device_with_asid .id ,
7064 )
7165 intermediate_device .delete_key (
72- key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID , key_value = "ABC: 1234567890"
66+ key_type = DeviceKeyType .ACCREDITED_SYSTEM_ID , key_value = "1234567890"
7367 )
7468 repository .write (intermediate_device )
7569 time .sleep (1 )
0 commit comments