diff options
| author | 2012-02-19 19:41:26 +0100 | |
|---|---|---|
| committer | 2012-02-19 19:41:26 +0100 | |
| commit | 3594257f6428988ebb7a87eef47feee206c5dc83 (patch) | |
| tree | 98898b67eeff42ceb5bae5a98ab6816448c61619 /pygithub3/tests/services | |
| parent | Repos commits added (diff) | |
| download | python-github3-3594257f6428988ebb7a87eef47feee206c5dc83.tar.xz python-github3-3594257f6428988ebb7a87eef47feee206c5dc83.zip | |
Fix test imports
Diffstat (limited to 'pygithub3/tests/services')
| -rw-r--r-- | pygithub3/tests/services/test_core.py | 4 | ||||
| -rw-r--r-- | pygithub3/tests/services/test_repos.py | 5 | ||||
| -rw-r--r-- | pygithub3/tests/services/test_users.py | 5 |
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) |
