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