diff --git a/warden_server/test_warden_server.py b/warden_server/test_warden_server.py index 4355407d671749665062b125dc1b82f32c69f3b1..346f7dfec2a1caf76f7f64516e5b3e70b9f38366 100755 --- a/warden_server/test_warden_server.py +++ b/warden_server/test_warden_server.py @@ -121,7 +121,6 @@ class Warden3ServerTest(unittest.TestCase): """High level Warden3 Server tests""" config = {'log': {'level': 'debug'}, 'validator': {'type': 'NoValidator'}, 'auth': {'type': 'PlainAuthenticator'}, 'db': {'user': USER, 'password': PASSWORD, 'dbname': DB}, 'handler': {'description': 'Warden Test Server'}} - app = build_server(config) getInfo_interface_tests_specific = [ ("/getInfo", "403 I'm watching. Authenticate."), @@ -139,6 +138,7 @@ class Warden3ServerTest(unittest.TestCase): def setUpClass(cls): """Pre-test cleanup""" cls.clean_lastid() + cls.app = build_server(cls.config) @classmethod def clean_lastid(cls): @@ -243,14 +243,12 @@ class X509AuthenticatorTest(Warden3ServerTest): """Performs the basic test suite using the X509Authenticator""" config = deepcopy(Warden3ServerTest.config) config['auth']['type'] = 'X509Authenticator' - app = build_server(config) class X509NameAuthenticatorTest(Warden3ServerTest): """Performs the basic test suite using the X509NameAuthenticator""" config = deepcopy(Warden3ServerTest.config) config['auth']['type'] = 'X509NameAuthenticator' - app = build_server(config) getInfo_interface_tests_specific = [ ("/getInfo", "200 OK"),