From 8cfbc2f80eb186e0958b7fbf7b9f70dca37389f7 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 25 Jul 2012 10:34:57 +1200 Subject: Refactor test.py, add unit tests for app.py corner case. --- test/tutils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/tutils.py') diff --git a/test/tutils.py b/test/tutils.py index b1e277e7..1eb78980 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -5,6 +5,7 @@ import requests class DaemonTests: noweb = False + noapi = False ssl = False @classmethod def setUpAll(self): @@ -13,7 +14,8 @@ class DaemonTests: anchors=[("/anchor/.*", "202")], ssl = self.ssl, sizelimit=1*1024*1024, - noweb = self.noweb + noweb = self.noweb, + noapi = self.noapi ) @classmethod @@ -21,7 +23,8 @@ class DaemonTests: self.d.shutdown() def setUp(self): - self.d.clear_log() + if not (self.noweb or self.noapi): + self.d.clear_log() def getpath(self, path, params=None): scheme = "https" if self.ssl else "http" -- cgit v1.2.3