aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/utils/base.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-05-12 23:08:55 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-05-12 23:08:55 +0200
commit748b320dd244341694c0d247d04c7f57ad4c052e (patch)
tree37b7ffad24d21f398dbb0592395b65599594c40b /pygithub3/tests/utils/base.py
parentNew install environment to prod and dev (diff)
parentSome fixes/typos and 'validate_body' related (diff)
downloadpython-github3-748b320dd244341694c0d247d04c7f57ad4c052e.tar.xz
python-github3-748b320dd244341694c0d247d04c7f57ad4c052e.zip
Merge 'services/pull_requests'
Diffstat (limited to 'pygithub3/tests/utils/base.py')
-rw-r--r--pygithub3/tests/utils/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygithub3/tests/utils/base.py b/pygithub3/tests/utils/base.py
index 49ea2b4..f90b5d3 100644
--- a/pygithub3/tests/utils/base.py
+++ b/pygithub3/tests/utils/base.py
@@ -14,7 +14,7 @@ def mock_json(content):
def mock_response(status_code='get', content={}):
CODES = dict(get=200, patch=200, post=201, delete=204)
response = Mock(name='response')
- response.status_code = CODES[str(status_code).lower()] or status_code
+ response.status_code = CODES.get(str(status_code).lower(), status_code)
response.content = content
return response