Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved the check_type and check_valid_size validation functions
A couple of minor improvements have been made: - The check_type function now tests for lists of length 1 so the returned mesaging is better. - check_valid_size() now passes the name variable into check_type as this is a required argument. To cover the additional logic within check_type a new test has been added in the test_validation file.
- Loading branch information
tg
committed
Sep 6, 2019
1 parent
6ac1eef
commit fccad72
Showing
4 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
RELEASE_TYPE: patch | ||
|
||
This patch improves the messaging that comes from invalid size arguments | ||
to collection strategies such as :func:`~hypothesis.strategies.lists`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters