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