Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Fix exception when validation against empty list #265

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

TheSuperiorStanislav
Copy link
Contributor

When making a request to a list action and getting the empty list, the validator fails because it mistakenly passes an empty dict instead of the original response.

@codecov
Copy link

codecov bot commented Jun 28, 2022

Codecov Report

Merging #265 (25a064f) into master (758f49b) will not change coverage.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master     #265   +/-   ##
=======================================
  Coverage   100.0%   100.0%           
=======================================
  Files           9        9           
  Lines         492      492           
  Branches       97       97           
=======================================
  Hits          492      492           
Impacted Files Coverage Δ
openapi_tester/loaders.py 100.0% <100.0%> (ø)
openapi_tester/schema_tester.py 100.0% <100.0%> (ø)

Copy link
Contributor Author

@TheSuperiorStanislav TheSuperiorStanislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno why checks for linting falling, because it doesn't complain on my changes

@sondrelg
Copy link
Member

Looks good to me. I'll see if we can update the linters in master; maybe that will fix it.

@sondrelg
Copy link
Member

Thanks @TheSuperiorStanislav!

@sondrelg sondrelg merged commit 77e6713 into snok:master Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants