aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/requests/test_core.py
diff options
context:
space:
mode:
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):