attrs/tests
Kurt Rose 08b15877c7 Add matches_re validator (#552)
* matches

* added flags pass-through, and multiple function options; defaults to fullmatch

* move logic from validate to constructor

* cleaned up default args / fullmatch emulation

* fixed meta validator

* cleaned up default args / fullmatch emulation

* test cleanup

* versionadded tag

* added changelog entry

* cleaned up type checks, added to api docs and pyi type signature

* black formats

* black formatting

* 100% test coverage

* added example usage of matches_re to docs

* fixing py2 swallow type error and wrong quote in doctest

* explicit tests for all possible func args

* pragma no branch to get coverage 100%
2019-09-09 10:48:52 +02:00
..
__init__.py Move test helpers into an utils module 2016-08-15 15:27:13 +02:00
strategies.py Consistency for slotted classes 2019-03-21 09:38:32 -05:00
test_annotations.py Ensure that bare attributes with default None are removed too (#556) 2019-07-23 13:19:10 +02:00
test_config.py Check type of set_run_validators' arg 2015-06-05 20:28:50 +02:00
test_converters.py Implement attr.converters.default_if_none (#414) 2018-07-28 16:03:41 +01:00
test_dark_magic.py Make auto_exc=True classes hashable by ID (#563) 2019-08-19 20:03:44 +02:00
test_dunders.py support custom repr() callable for attributes (#568) 2019-09-06 14:26:08 +02:00
test_filters.py Fade to Black (#392) 2018-06-10 19:40:07 +02:00
test_funcs.py Remove some extraneous # noqa comments (#530) 2019-05-14 09:01:03 -04:00
test_init_subclass.py Be consistent in calling slotted classes slotted 2019-02-25 16:09:57 +01:00
test_make.py Stop comparing/ordering subclasses (#570) 2019-09-07 12:19:10 +02:00
test_slots.py Update closure cell rewriting to use CodeType.replace() on 3.8 (#562) 2019-08-08 07:57:33 +02:00
test_validators.py Add matches_re validator (#552) 2019-09-09 10:48:52 +02:00
typing_example.py support custom repr() callable for attributes (#568) 2019-09-06 14:26:08 +02:00
utils.py Cache hash codes (#426) 2018-08-20 06:46:52 +02:00