summaryrefslogtreecommitdiff
path: root/service/test/unit/resources
diff options
context:
space:
mode:
authorDuda Dornelles <dudassdornelles@gmail.com>2015-01-22 15:50:36 -0200
committerPixpoa pairing <pixpoapairing@pixelated-project.org>2015-01-22 16:50:53 -0200
commit86ed99a7d78e4690d103f4334dc0eef03c47e402 (patch)
treedafd5d0aca3efb6f3c8afdc755c88423fba5991f /service/test/unit/resources
parent81552abcfe67f61b68ad7cbf424738f7788f148c (diff)
#224 fixing tests and app for twisted migration
Diffstat (limited to 'service/test/unit/resources')
-rw-r--r--service/test/unit/resources/test_sync_info_controller.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/service/test/unit/resources/test_sync_info_controller.py b/service/test/unit/resources/test_sync_info_controller.py
index c24c7181..a91dd386 100644
--- a/service/test/unit/resources/test_sync_info_controller.py
+++ b/service/test/unit/resources/test_sync_info_controller.py
@@ -21,7 +21,7 @@ from pixelated.resources.sync_info_resource import SyncInfoResource
from mockito import *
-class SyncInfoControllerTest(unittest.TestCase):
+class SyncInfoResourceTest(unittest.TestCase):
def setUp(self):
self.dummy_request = request_mock()
@@ -33,8 +33,7 @@ class SyncInfoControllerTest(unittest.TestCase):
self.controller.set_sync_info(soledad_sync_data)
def get_sync_info(self):
- self.controller.render_GET(self.dummy_request)
- return json.loads(self.dummy_request.written[0])
+ return json.loads(self.controller.render_GET(self.dummy_request))
def test_is_not_syncing_if_total_is_equal_to_current(self):
self._set_count(total=0, current=0)