Merge "Remove print()"
This commit is contained in:
commit
066f9e02e2
@ -105,7 +105,6 @@ class FunctionalTest(base.DbTestCase):
|
||||
:param path_prefix: prefix of the url path
|
||||
"""
|
||||
full_path = path_prefix + path
|
||||
print('%s: %s %s' % (method.upper(), full_path, params))
|
||||
|
||||
response = getattr(self.app, "%s_json" % method)(
|
||||
str(full_path),
|
||||
@ -115,7 +114,6 @@ class FunctionalTest(base.DbTestCase):
|
||||
extra_environ=extra_environ,
|
||||
expect_errors=expect_errors
|
||||
)
|
||||
print('GOT:%s' % response)
|
||||
return response
|
||||
|
||||
def put_json(self, path, params, expect_errors=False, headers=None,
|
||||
@ -192,13 +190,11 @@ class FunctionalTest(base.DbTestCase):
|
||||
:param path_prefix: prefix of the url path
|
||||
"""
|
||||
full_path = path_prefix + path
|
||||
print('DELETE: %s' % (full_path))
|
||||
response = self.app.delete(str(full_path),
|
||||
headers=headers,
|
||||
status=status,
|
||||
extra_environ=extra_environ,
|
||||
expect_errors=expect_errors)
|
||||
print('GOT:%s' % response)
|
||||
return response
|
||||
|
||||
def get_json(self, path, expect_errors=False, headers=None,
|
||||
@ -229,7 +225,6 @@ class FunctionalTest(base.DbTestCase):
|
||||
all_params.update(params)
|
||||
if q:
|
||||
all_params.update(query_params)
|
||||
print('GET: %s %r' % (full_path, all_params))
|
||||
|
||||
response = self.app.get(full_path,
|
||||
params=all_params,
|
||||
@ -238,7 +233,6 @@ class FunctionalTest(base.DbTestCase):
|
||||
expect_errors=expect_errors)
|
||||
if return_json and not expect_errors:
|
||||
response = response.json
|
||||
print('GOT:%s' % response)
|
||||
return response
|
||||
|
||||
def validate_link(self, link, bookmark=False):
|
||||
|
Loading…
x
Reference in New Issue
Block a user