diff options
author | 2012-02-19 19:41:45 +0100 | |
---|---|---|
committer | 2012-02-19 19:41:45 +0100 | |
commit | 8c3e123e0a232b5e8dfb9f405711f2bcf78ff33d (patch) | |
tree | c630c2e905826719c50b7579528701a6b4c6407e /pygithub3/tests/utils/services.py | |
parent | Fix test imports (diff) | |
download | python-github3-8c3e123e0a232b5e8dfb9f405711f2bcf78ff33d.tar.xz python-github3-8c3e123e0a232b5e8dfb9f405711f2bcf78ff33d.zip |
Support to Mimetypes in some services
Diffstat (limited to 'pygithub3/tests/utils/services.py')
-rw-r--r-- | pygithub3/tests/utils/services.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pygithub3/tests/utils/services.py b/pygithub3/tests/utils/services.py index f4765b5..8670f31 100644 --- a/pygithub3/tests/utils/services.py +++ b/pygithub3/tests/utils/services.py @@ -1,10 +1,16 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- -from .base import mock_json +from pygithub3.services.base import Service, MimeTypeMixin +from .base import DummyRequest base_url = 'https://api.github.com/' def _(request): return "%s%s" % (base_url, request) + +class DummyService(Service, MimeTypeMixin): + + def dummy_request(self): + self._get(DummyRequest(), **self._get_mimetype_as_header()) |