Skip to content

Commit

Permalink
Merge pull request #808 from marshmallow-code/pre-commit-ci-update-co…
Browse files Browse the repository at this point in the history
…nfig

[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
sirosen committed Feb 7, 2023
2 parents 194f411 + 117a4d9 commit 30227b5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: check-github-workflows
- id: check-readthedocs
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
Expand Down
1 change: 0 additions & 1 deletion examples/flaskrestful_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
4 changes: 0 additions & 4 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -827,7 +825,6 @@ def test_passing_schema_to_parse(self, parser, web_request):
assert result == {"email": "foo@bar.com", "password": "bar"}

def test_use_args_can_be_passed_a_schema(self, web_request, parser):

web_request.json = {"email": "foo@bar.com", "password": "bar"}

@parser.use_args(self.UserSchema(), web_request)
Expand Down Expand Up @@ -861,7 +858,6 @@ def viewfunc(args):
assert viewfunc() == {"email": "foo@bar.com", "password": "bar"}

def test_use_kwargs_can_be_passed_a_schema(self, web_request, parser):

web_request.json = {"email": "foo@bar.com", "password": "bar"}

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

0 comments on commit 30227b5

Please sign in to comment.