This commit is contained in:
Kevin Fronczak
2018-01-20 11:43:46 -05:00
parent c245bc24a6
commit e65840d269
2 changed files with 21 additions and 12 deletions
+2 -1
View File
@@ -234,7 +234,8 @@ def mocked_requests_get(*args, **kwargs):
set_region_id = (set_region_id + '.' +
args[0].split('/')[2].split('.')[1])
region_id = 'rest.piri'
neturl = 'https://rest.' + set_region_id + '.' + const.BLINK_URL + '/networks'
neturl = 'https://rest.{}.{}/networks'.format(set_region_id,
const.BLINK_URL)
if args[0] == neturl:
return MockGetResponse(NETWORKS_RESPONSE, 200)
elif set_region_id != region_id: