diff options
author | 2012-05-12 17:30:05 +0200 | |
---|---|---|
committer | 2012-05-12 17:45:07 +0200 | |
commit | cd7e1b88c9dfa5eaa126ece0a5529e224ae297d4 (patch) | |
tree | 57dcc80fea6827bf2349d958f8d66e7c421775b0 /pygithub3/tests/utils/base.py | |
parent | Unify json imports (diff) | |
download | python-github3-cd7e1b88c9dfa5eaa126ece0a5529e224ae297d4.tar.xz python-github3-cd7e1b88c9dfa5eaa126ece0a5529e224ae297d4.zip |
Deleted 'validate_body' behaviour
'clean_body' had been developed to that functionality
Diffstat (limited to 'pygithub3/tests/utils/base.py')
-rw-r--r-- | pygithub3/tests/utils/base.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/pygithub3/tests/utils/base.py b/pygithub3/tests/utils/base.py index b3c3b76..f90b5d3 100644 --- a/pygithub3/tests/utils/base.py +++ b/pygithub3/tests/utils/base.py @@ -4,7 +4,7 @@ from mock import Mock from pygithub3.resources.base import Resource -from pygithub3.requests.base import Request, ValidationError +from pygithub3.requests.base import Request def mock_json(content): @@ -37,14 +37,3 @@ DummyResource.loads = Mock(side_effect=loads_mock) class DummyRequest(Request): uri = 'dummyrequest' resource = DummyResource - - -class DummyRequestValidation(DummyRequest): - body_schema = { - 'schema': ('foo', 'error'), - 'required': ('foo',) - } - - def validate_body(self, body): - if body.get('error') == 'yes': - raise ValidationError('yes') |