aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/services
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/tests/services')
-rw-r--r--pygithub3/tests/services/test_core.py4
-rw-r--r--pygithub3/tests/services/test_repos.py5
-rw-r--r--pygithub3/tests/services/test_users.py5
3 files changed, 8 insertions, 6 deletions
diff --git a/pygithub3/tests/services/test_core.py b/pygithub3/tests/services/test_core.py
index ccddee7..007f94f 100644
--- a/pygithub3/tests/services/test_core.py
+++ b/pygithub3/tests/services/test_core.py
@@ -6,10 +6,10 @@ from mock import patch
import requests
-from pygithub3.services.base import Service
+from pygithub3.services.base import Service, MimeTypeMixin
from pygithub3.core.result import Result
from pygithub3.tests.utils.base import DummyRequest, mock_response
-from .utils import _
+from pygithub3.tests.utils.services import _, DummyService
@patch.object(requests.sessions.Session, 'request')
diff --git a/pygithub3/tests/services/test_repos.py b/pygithub3/tests/services/test_repos.py
index f8414d5..963e12a 100644
--- a/pygithub3/tests/services/test_repos.py
+++ b/pygithub3/tests/services/test_repos.py
@@ -8,8 +8,9 @@ from mock import patch, Mock
from pygithub3.services.repos import Repo, Collaborator, Commits
from pygithub3.resources.base import json
-from pygithub3.tests.utils.base import mock_response, mock_response_result
-from pygithub3.tests.utils.services import _, mock_json
+from pygithub3.tests.utils.base import (mock_response, mock_response_result,
+ mock_json)
+from pygithub3.tests.utils.services import _
json.dumps = Mock(side_effect=mock_json)
json.loads = Mock(side_effect=mock_json)
diff --git a/pygithub3/tests/services/test_users.py b/pygithub3/tests/services/test_users.py
index 0438f99..049197b 100644
--- a/pygithub3/tests/services/test_users.py
+++ b/pygithub3/tests/services/test_users.py
@@ -10,8 +10,9 @@ from pygithub3.core.client import Client
from pygithub3.services.users import User, Emails, Followers, Keys
from pygithub3.exceptions import ValidationError
from pygithub3.resources.base import json
-from pygithub3.tests.utils.base import mock_response, mock_response_result
-from pygithub3.tests.utils.services import _, mock_json
+from pygithub3.tests.utils.base import (mock_response, mock_response_result,
+ mock_json)
+from pygithub3.tests.utils.services import _
json.dumps = Mock(side_effect=mock_json)
json.loads = Mock(side_effect=mock_json)