From 8c96b22b44ef75b859d98d3dc55d9fb193aa8192 Mon Sep 17 00:00:00 2001 From: sneakypete81 Date: Sat, 14 Sep 2013 12:19:08 +0100 Subject: [PATCH] No coverage required for response logging truncation --- trovebox/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trovebox/http.py b/trovebox/http.py index 7f6f666..0a99fab 100644 --- a/trovebox/http.py +++ b/trovebox/http.py @@ -105,7 +105,7 @@ class Http(object): self._logger.info("GET %s" % url) self._logger.info("---") self._logger.info(response.text[:1000]) - if len(response.text) > 1000: + if len(response.text) > 1000: # pragma: no cover self._logger.info("[Response truncated to 1000 characters]") self.last_url = url @@ -161,7 +161,7 @@ class Http(object): self._logger.info("files: %s" % repr(files)) self._logger.info("---") self._logger.info(response.text[:1000]) - if len(response.text) > 1000: + if len(response.text) > 1000: # pragma: no cover self._logger.info("[Response truncated to 1000 characters]") self.last_url = url