Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 6, 2023
1 parent 2c66dcb commit 117a4d9
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion examples/flaskrestful_example.py
Original file line number Diff line number Diff line change
@@ -46,7 +46,6 @@ def post(self, x, y):


class DateAddResource(Resource):

dateadd_args = {
"value": fields.Date(required=False),
"addend": fields.Int(required=True, validate=validate.Range(min=1)),
4 changes: 0 additions & 4 deletions tests/test_core.py
Original file line number Diff line number Diff line change
@@ -510,7 +510,6 @@ def load_data(req, schema):


def test_full_input_validation(parser, web_request):

web_request.json = {"foo": 41, "bar": 42}

args = {"foo": fields.Int(), "bar": fields.Int()}
@@ -775,7 +774,6 @@ def test_multiple_arg_required_with_int_conversion(web_request, parser):


def test_parse_with_callable(web_request, parser):

web_request.json = {"foo": 42}

class MySchema(Schema):
@@ -827,7 +825,6 @@ def test_passing_schema_to_parse(self, parser, web_request):
assert result == {"email": "[email protected]", "password": "bar"}

def test_use_args_can_be_passed_a_schema(self, web_request, parser):

web_request.json = {"email": "[email protected]", "password": "bar"}

@parser.use_args(self.UserSchema(), web_request)
@@ -861,7 +858,6 @@ def viewfunc(args):
assert viewfunc() == {"email": "[email protected]", "password": "bar"}

def test_use_kwargs_can_be_passed_a_schema(self, web_request, parser):

web_request.json = {"email": "[email protected]", "password": "bar"}

@parser.use_kwargs(self.UserSchema(), web_request)

0 comments on commit 117a4d9

Please sign in to comment.