diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-05-21 20:19:28 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2019-05-22 21:13:05 +0300 |
commit | fa59cb2a6a97839d035f33127aff5e38d334a85a (patch) | |
tree | 663d403874b8ac0a7f7273cc1ef90d355e11d7b7 /tools | |
parent | 98045752e4c87c0714c2a6619591eee9e069c0a2 (diff) |
[core] cross reference api + tests + framework integration
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/ResponseProvider.py | 4 | ||||
-rw-r--r-- | tools/python/jsons.py | 41 |
2 files changed, 45 insertions, 0 deletions
diff --git a/tools/python/ResponseProvider.py b/tools/python/ResponseProvider.py index 0b8eb176c8..31569d6f3d 100644 --- a/tools/python/ResponseProvider.py +++ b/tools/python/ResponseProvider.py @@ -147,6 +147,7 @@ class ResponseProvider: "/partners/taxi_info": self.partners_yandex_taxi_info, "/partners/get-offers-in-bbox/": self.partners_rent_nearby, "/partners/CalculateByCoords": self.partners_calculate_by_coords, + "/gallery/city/TestOsmId/": self.cross_reference_gallery_city, }[url]() except: return self.test_404() @@ -239,6 +240,9 @@ class ResponseProvider: def partners_calculate_by_coords(self): return Payload(jsons.PARTNERS_CALCULATE_BY_COORDS) + def cross_reference_gallery_city(self): + return Payload(jsons.CROSS_REFERENCE_GALLERY_CITY) + def kill(self): logging.debug("Kill called in ResponseProvider") self.delegate.kill() diff --git a/tools/python/jsons.py b/tools/python/jsons.py index a8c0913b55..d4a541bb32 100644 --- a/tools/python/jsons.py +++ b/tools/python/jsons.py @@ -513,3 +513,44 @@ PARTNERS_CALCULATE_BY_COORDS = """ "PriceString": "244.00 ₽" } """ + +CROSS_REFERENCE_GALLERY_CITY = """ +{ + "data": [ + { + "url": "bundle/73af3f02-b8e3-4f60-8ef0-1c3c5cff43ca", + "name": "По Виа Рипетта до мавзолея Августа и Алтаря мира", + "author": { + "key_id": "00000000-0000-0000-0000-000000000000", + "name": "The Village" + }, + "image_url": "http://localhost:8000/images/73af3f02-b8e3-4f60-8ef0-1c3c5cff43ca.jpg", + "access": "public", + "lux_category": { + "name": "LUX", + "color": "666666" + }, + "tier": "price.tier" + }, + { + "url": "bundle/73af3f02-b8e3-4f60-8ef0-1c3c5cff43ca", + "name": "Полеты в метро", + "author": { + "key_id": "00000000-0000-0000-0000-000000000000", + "name": "Bmj" + }, + "image_url": null, + "access": "public", + "lux_category": { + "name": null, + "color": "666666" + }, + "tier": null + } + ], + "errors": [], + "meta": { + "more": "search?city=666" + } +} +""" |