Skip to content

Commit

Permalink
remove items.photos field from branch/get requests (#389)
Browse files Browse the repository at this point in the history
* remove items.photos field from branch/get requests

* remove items.photos from functional tests
  • Loading branch information
Alex Fedosov authored and vkorostelev committed Nov 14, 2016
1 parent 81a9948 commit 2430936
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config.main.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"webApiVersion": "2.0",

"regionListFields": "items.bounds,items.zoom_level,items.time_zone,items.code,items.flags,items.country_code,items.domain,items.default_pos",
"firmInfoFields": "items.reviews,items.photos,items.links,items.external_content",
"firmInfoFields": "items.reviews,items.links,items.external_content",
"geoAdditionalFields": "items.geometry.selection,items.links,items.adm_div,items.address,items.floors,items.description",
"geoclickerCatalogApiKey": "ruregt3044",
"projectLeaveMaxZoom": 13,
Expand Down
6 changes: 1 addition & 5 deletions functional-tests/classes/WAPI/dataWorker.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ def review_count(self):
def rating(self):
return self.response['items'][0]['reviews']['rating']

@property
def photos(self):
return self.response['items'][0]['photos']['items']

@property
def address_name(self):
return self.response['items'][0]['address_name'].replace(u'\xa0', ' ')
Expand Down Expand Up @@ -138,7 +134,7 @@ def photo_count(self):
if item['subtype'] == 'common':
return item['count']
except KeyError:
return len(self.photos())
return 0


class GalleryData(object):
Expand Down
2 changes: 1 addition & 1 deletion functional-tests/classes/WAPI/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get(self, firm_id):
'key': self.base_params['key'],
'id': str(firm_id),
'type': 'filial',
'fields': 'items.reviews,items.photos,items.links,items.external_content'
'fields': 'items.reviews,items.links,items.external_content'
}
url = "%s%s" % (self.api_url, method)
return self.request(url, params)
Expand Down

0 comments on commit 2430936

Please sign in to comment.