added collection name to module.deprecate() calls; fixed pep8 linting issues

This commit is contained in:
Sarabraj Singh
2021-05-24 13:02:43 -04:00
committed by Seth Foster
parent 378a0711c2
commit 25ca8d22d6
4 changed files with 13 additions and 4 deletions

View File

@@ -163,7 +163,7 @@ class ControllerAPIModule(ControllerModule):
if len(sample['json']['results']) > 1:
sample['json']['results'] = sample['json']['results'][:2] + ['...more results snipped...']
url = self.build_url(endpoint, query_params)
display_endpoint = url.geturl()[len(self.host) :] # truncate to not include the base URL
display_endpoint = url.geturl()[len(self.host):] # truncate to not include the base URL
self.fail_json(
msg="Request to {0} returned {1} items, expected 1".format(display_endpoint, response['json']['count']),
query=query_params,