Skip to content

Add pytest coverage for length, between, uuid, MAC, IBAN, cron, encodings and card brands (220 tests) - #546

Open
wxs-lang wants to merge 5 commits into
python-validators:masterfrom
wxs-lang:master
Open

wxs-lang wants to merge 5 commits into
python-validators:masterfrom
wxs-lang:master

Conversation

@wxs-lang

Copy link
Copy Markdown

The validators covered here are the ones whose existing tests are thinnest — length, between, uuid, mac_address, iban, cron — plus the encoding and card-brand matrices the current suite only samples. This adds 220 tests in four files under tests/, following the repo's own parametrized style, plus a small conftest so the suite also runs without an install. No production code changed. A few quirks found while probing are pinned as-is with a comment, like uuid accepting any version and brace/URN spellings despite the 'UUID-v4' docstring, and AbsMax() >= AbsMax() being True while AbsMax() == AbsMax() is False.

Checked locally: the four new files pass (220 passed). The full upstream suite has 28 pre-existing failures, all in the crypto-address tests because the optional eth extra isn't installed here — they fail identically without this PR.

…ings and card brands (220 tests)

Add logic to make the 'validators' package importable from various locations.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant