aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/requests/test_core.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-10 00:57:21 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-10 00:57:21 +0100
commit6c00db9a6605fc600c2867c256b68297bb289678 (patch)
tree20b0e53d5c115cfd96915e7fa40196882ce0eb25 /pygithub3/tests/requests/test_core.py
parentEasier requests.Factory builds (diff)
downloadpython-github3-6c00db9a6605fc600c2867c256b68297bb289678.tar.xz
python-github3-6c00db9a6605fc600c2867c256b68297bb289678.zip
json:dumps.loads mocked
Diffstat (limited to 'pygithub3/tests/requests/test_core.py')
-rw-r--r--pygithub3/tests/requests/test_core.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pygithub3/tests/requests/test_core.py b/pygithub3/tests/requests/test_core.py
index 5376c01..f29ab1d 100644
--- a/pygithub3/tests/requests/test_core.py
+++ b/pygithub3/tests/requests/test_core.py
@@ -7,10 +7,11 @@ from mock import Mock
from pygithub3.requests import Factory, Body, json, Request
from pygithub3.exceptions import UriInvalid, DoesNotExists, ValidationError
from pygithub3.tests.utils.requests import (
- RequestWithArgs, RequestCleanedUri, RequestBodyWithSchema, mock_json_dumps,
+ RequestWithArgs, RequestCleanedUri, RequestBodyWithSchema, mock_json,
DummyRequest, RequestCleanedBody)
-json.dumps = Mock(side_effect=mock_json_dumps)
+json.dumps = Mock(side_effect=mock_json)
+json.loads = Mock(side_effect=mock_json)
class TestFactory(TestCase):