From aa36e6a881a273fa9acfc73da5a8f07cb8e4838b Mon Sep 17 00:00:00 2001
From: licanwei
Date: Fri, 11 Oct 2019 14:59:14 +0800
Subject: [PATCH] Remove print()
Change-Id: Ida31237b77e98c803cb1ccb3bd5b190289434207
---
watcher/tests/api/base.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/watcher/tests/api/base.py b/watcher/tests/api/base.py
index 4bc0bd677..82696512b 100644
--- a/watcher/tests/api/base.py
+++ b/watcher/tests/api/base.py
@@ -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):