diff options
author | 2012-05-12 23:08:55 +0200 | |
---|---|---|
committer | 2012-05-12 23:08:55 +0200 | |
commit | 748b320dd244341694c0d247d04c7f57ad4c052e (patch) | |
tree | 37b7ffad24d21f398dbb0592395b65599594c40b /pygithub3/tests/utils/base.py | |
parent | New install environment to prod and dev (diff) | |
parent | Some fixes/typos and 'validate_body' related (diff) | |
download | python-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.py | 2 |
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 |