From 86ed99a7d78e4690d103f4334dc0eef03c47e402 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Thu, 22 Jan 2015 15:50:36 -0200 Subject: #224 fixing tests and app for twisted migration --- service/test/unit/resources/test_sync_info_controller.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'service/test/unit/resources/test_sync_info_controller.py') 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) -- cgit v1.2.3