summaryrefslogtreecommitdiff
path: root/service/test/unit/resources
diff options
context:
space:
mode:
authorNavaL <ayoyo@thoughtworks.com>2016-02-25 12:18:31 +0100
committerNavaL <ayoyo@thoughtworks.com>2016-02-25 12:18:31 +0100
commit1e6518dd6577bf0dbec359fd4c1aec12ed6f2a64 (patch)
tree0f2bfea8d6f6c161481ca5365632ba8b0e69ccc9 /service/test/unit/resources
parent1e1668f98afd04e2da7c779a825e6d28e777fec7 (diff)
only adding feature resource in root_resource test -- fixing build
Issue #612
Diffstat (limited to 'service/test/unit/resources')
-rw-r--r--service/test/unit/resources/test_root_resource.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/test/unit/resources/test_root_resource.py b/service/test/unit/resources/test_root_resource.py
index 53481f56..cc052d8b 100644
--- a/service/test/unit/resources/test_root_resource.py
+++ b/service/test/unit/resources/test_root_resource.py
@@ -5,6 +5,7 @@ from mock import MagicMock, patch
from mockito import mock, when, any as ANY
from pixelated.application import UserAgentMode
+from pixelated.resources.features_resource import FeaturesResource
from test.unit.resources import DummySite
from twisted.web.test.requesthelper import DummyRequest
from pixelated.resources.root_resource import RootResource, MODE_STARTUP, MODE_RUNNING
@@ -90,7 +91,7 @@ class TestRootResource(unittest.TestCase):
request = DummyRequest(['features'])
request.getCookie = MagicMock(return_value='irrelevant -- stubbed')
- self.root_resource.initialize()
+ self.root_resource._child_resources.add('features', FeaturesResource())
d = self.web.get(request)