From c33f62f7c3b4f9fd2d8617dc91886ca95d20b3c4 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Tue, 14 Oct 2014 15:35:13 +0800 Subject: [PATCH] Fix the exception raised when running test by nose When using nose to run the unittest, Exception `TypeError: setUp() takes exactly 1 argument` is raised,due to the wrong place of `@testing.requires_mongodb` decorator. Change-Id: Idc15fd7b52c7f26b53f0c72af61045f1423548ec --- tests/functional/wsgi/v1_1/test_pools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/wsgi/v1_1/test_pools.py b/tests/functional/wsgi/v1_1/test_pools.py index 6f1b07752..a21793650 100644 --- a/tests/functional/wsgi/v1_1/test_pools.py +++ b/tests/functional/wsgi/v1_1/test_pools.py @@ -20,12 +20,12 @@ from zaqar.tests.functional import helpers @ddt.ddt -@testing.requires_mongodb class TestPools(base.V1_1FunctionalTestBase): server_class = base.ZaqarAdminServer config_file = 'wsgi_mongodb_pooled.conf' + @testing.requires_mongodb def setUp(self): super(TestPools, self).setUp()