Skip to content

Commit

Permalink
fix: Add missing validate_schema argument to `loaders.from_pytest_f…
Browse files Browse the repository at this point in the history
…ixture`
  • Loading branch information
Stranger6667 committed Apr 30, 2020
1 parent ff45420 commit 5b9e748
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Expand Up @@ -6,6 +6,11 @@ Changelog
`Unreleased`_
-------------

Fixed
~~~~~

- Add missing ``validate_schema`` argument to ``loaders.from_pytest_fixture``.

`1.3.4`_ - 2020-04-30
---------------------

Expand Down
3 changes: 2 additions & 1 deletion src/schemathesis/loaders.py
Expand Up @@ -156,9 +156,10 @@ def from_pytest_fixture(
method: Optional[Filter] = NOT_SET,
endpoint: Optional[Filter] = NOT_SET,
tag: Optional[Filter] = NOT_SET,
validate_schema: bool = True,
) -> LazySchema:
"""Needed for a consistent library API."""
return LazySchema(fixture_name, method=method, endpoint=endpoint, tag=tag)
return LazySchema(fixture_name, method=method, endpoint=endpoint, tag=tag, validate_schema=validate_schema)


def from_wsgi(
Expand Down

0 comments on commit 5b9e748

Please sign in to comment.