fixed endpoints of basic test
This commit is contained in:
parent
fe3f038218
commit
3af8880bcd
|
@ -30,76 +30,76 @@ def test_api_docs(client: Client):
|
|||
assert set(docs['paths'].keys()) == {
|
||||
'/actions/',
|
||||
'/apidocs',
|
||||
'/batteries/{id}/merge/',
|
||||
'/bikes/{id}/merge/',
|
||||
'/cameras/{id}/merge/',
|
||||
'/cellphones/{id}/merge/',
|
||||
'/components/{id}/merge/',
|
||||
'/computer-accessories/{id}/merge/',
|
||||
'/computer-monitors/{id}/merge/',
|
||||
'/computers/{id}/merge/',
|
||||
'/cookings/{id}/merge/',
|
||||
'/data-storages/{id}/merge/',
|
||||
'/dehumidifiers/{id}/merge/',
|
||||
'/batteries/{dev1_id}/merge/{dev2_id}',
|
||||
'/bikes/{dev1_id}/merge/{dev2_id}',
|
||||
'/cameras/{dev1_id}/merge/{dev2_id}',
|
||||
'/cellphones/{dev1_id}/merge/{dev2_id}',
|
||||
'/components/{dev1_id}/merge/{dev2_id}',
|
||||
'/computer-accessories/{dev1_id}/merge/{dev2_id}',
|
||||
'/computer-monitors/{dev1_id}/merge/{dev2_id}',
|
||||
'/computers/{dev1_id}/merge/{dev2_id}',
|
||||
'/cookings/{dev1_id}/merge/{dev2_id}',
|
||||
'/data-storages/{dev1_id}/merge/{dev2_id}',
|
||||
'/dehumidifiers/{dev1_id}/merge/{dev2_id}',
|
||||
'/deliverynotes/',
|
||||
'/desktops/{id}/merge/',
|
||||
'/desktops/{dev1_id}/merge/{dev2_id}',
|
||||
'/devices/',
|
||||
'/devices/static/{filename}',
|
||||
'/devices/{id}/merge/',
|
||||
'/displays/{id}/merge/',
|
||||
'/diy-and-gardenings/{id}/merge/',
|
||||
'/devices/{dev1_id}/merge/{dev2_id}',
|
||||
'/displays/{dev1_id}/merge/{dev2_id}',
|
||||
'/diy-and-gardenings/{dev1_id}/merge/{dev2_id}',
|
||||
'/documents/devices/',
|
||||
'/documents/erasures/',
|
||||
'/documents/lots/',
|
||||
'/documents/static/{filename}',
|
||||
'/documents/stock/',
|
||||
'/drills/{id}/merge/',
|
||||
'/graphic-cards/{id}/merge/',
|
||||
'/hard-drives/{id}/merge/',
|
||||
'/homes/{id}/merge/',
|
||||
'/hubs/{id}/merge/',
|
||||
'/keyboards/{id}/merge/',
|
||||
'/label-printers/{id}/merge/',
|
||||
'/laptops/{id}/merge/',
|
||||
'/drills/{dev1_id}/merge/{dev2_id}',
|
||||
'/graphic-cards/{dev1_id}/merge/{dev2_id}',
|
||||
'/hard-drives/{dev1_id}/merge/{dev2_id}',
|
||||
'/homes/{dev1_id}/merge/{dev2_id}',
|
||||
'/hubs/{dev1_id}/merge/{dev2_id}',
|
||||
'/keyboards/{dev1_id}/merge/{dev2_id}',
|
||||
'/label-printers/{dev1_id}/merge/{dev2_id}',
|
||||
'/laptops/{dev1_id}/merge/{dev2_id}',
|
||||
'/lots/',
|
||||
'/lots/{id}/children',
|
||||
'/lots/{id}/devices',
|
||||
'/manufacturers/',
|
||||
'/memory-card-readers/{id}/merge/',
|
||||
'/mice/{id}/merge/',
|
||||
'/microphones/{id}/merge/',
|
||||
'/mixers/{id}/merge/',
|
||||
'/mobiles/{id}/merge/',
|
||||
'/monitors/{id}/merge/',
|
||||
'/motherboards/{id}/merge/',
|
||||
'/network-adapters/{id}/merge/',
|
||||
'/networkings/{id}/merge/',
|
||||
'/pack-of-screwdrivers/{id}/merge/',
|
||||
'/printers/{id}/merge/',
|
||||
'/processors/{id}/merge/',
|
||||
'/memory-card-readers/{dev1_id}/merge/{dev2_id}',
|
||||
'/mice/{dev1_id}/merge/{dev2_id}',
|
||||
'/microphones/{dev1_id}/merge/{dev2_id}',
|
||||
'/mixers/{dev1_id}/merge/{dev2_id}',
|
||||
'/mobiles/{dev1_id}/merge/{dev2_id}',
|
||||
'/monitors/{dev1_id}/merge/{dev2_id}',
|
||||
'/motherboards/{dev1_id}/merge/{dev2_id}',
|
||||
'/network-adapters/{dev1_id}/merge/{dev2_id}',
|
||||
'/networkings/{dev1_id}/merge/{dev2_id}',
|
||||
'/pack-of-screwdrivers/{dev1_id}/merge/{dev2_id}',
|
||||
'/printers/{dev1_id}/merge/{dev2_id}',
|
||||
'/processors/{dev1_id}/merge/{dev2_id}',
|
||||
'/proofs/',
|
||||
'/rackets/{id}/merge/',
|
||||
'/ram-modules/{id}/merge/',
|
||||
'/recreations/{id}/merge/',
|
||||
'/routers/{id}/merge/',
|
||||
'/sais/{id}/merge/',
|
||||
'/servers/{id}/merge/',
|
||||
'/smartphones/{id}/merge/',
|
||||
'/solid-state-drives/{id}/merge/',
|
||||
'/sound-cards/{id}/merge/',
|
||||
'/sounds/{id}/merge/',
|
||||
'/stairs/{id}/merge/',
|
||||
'/switches/{id}/merge/',
|
||||
'/tablets/{id}/merge/',
|
||||
'/rackets/{dev1_id}/merge/{dev2_id}',
|
||||
'/ram-modules/{dev1_id}/merge/{dev2_id}',
|
||||
'/recreations/{dev1_id}/merge/{dev2_id}',
|
||||
'/routers/{dev1_id}/merge/{dev2_id}',
|
||||
'/sais/{dev1_id}/merge/{dev2_id}',
|
||||
'/servers/{dev1_id}/merge/{dev2_id}',
|
||||
'/smartphones/{dev1_id}/merge/{dev2_id}',
|
||||
'/solid-state-drives/{dev1_id}/merge/{dev2_id}',
|
||||
'/sound-cards/{dev1_id}/merge/{dev2_id}',
|
||||
'/sounds/{dev1_id}/merge/{dev2_id}',
|
||||
'/stairs/{dev1_id}/merge/{dev2_id}',
|
||||
'/switches/{dev1_id}/merge/{dev2_id}',
|
||||
'/tablets/{dev1_id}/merge/{dev2_id}',
|
||||
'/tags/',
|
||||
'/tags/{tag_id}/device/{device_id}',
|
||||
'/television-sets/{id}/merge/',
|
||||
'/television-sets/{dev1_id}/merge/{dev2_id}',
|
||||
'/users/',
|
||||
'/users/login/',
|
||||
'/video-scalers/{id}/merge/',
|
||||
'/videoconferences/{id}/merge/',
|
||||
'/videos/{id}/merge/',
|
||||
'/wireless-access-points/{id}/merge/',
|
||||
'/video-scalers/{dev1_id}/merge/{dev2_id}',
|
||||
'/videoconferences/{dev1_id}/merge/{dev2_id}',
|
||||
'/videos/{dev1_id}/merge/{dev2_id}',
|
||||
'/wireless-access-points/{dev1_id}/merge/{dev2_id}',
|
||||
'/versions/'
|
||||
}
|
||||
assert docs['info'] == {'title': 'Devicehub', 'version': '0.2'}
|
||||
|
|
Reference in New Issue