attrs/tests
Antonio Botelho 71b4638b32
New attr.cmp_using helper function (#787)
* New attr.cmp_using helper function

* Updated cmp_using to use new_class instead of direct patching

* Removed stray annotation that make tests fail in PY2

* Skip test if PY2 because it won't raise TypeError when a method returns NotImplemented

* Skip test if PY2 because it won't raise TypeError when a method returns NotImplemented

* Fixed PY2 tests related to total_ordering

* Added tests to complete converage

* Moved class_name argument to definition and made it non-optional

* Fixed typo in variable name

* Revert accidental black formatting of __init__.pyi in commit 2b7970bf

Co-authored-by: Hynek Schlawack <hs@ox.cx>
2021-05-01 14:21:37 +02:00
..
__init__.py Move test helpers into an utils module 2016-08-15 15:27:13 +02:00
strategies.py __attrs_pre_init__ (#750) 2021-01-25 07:31:37 +01:00
test_annotations.py Detect ClassVars coming from typing_extensions (#782) 2021-03-20 18:02:59 +01:00
test_cmp.py New attr.cmp_using helper function (#787) 2021-05-01 14:21:37 +02:00
test_config.py Check type of set_run_validators' arg 2015-06-05 20:28:50 +02:00
test_converters.py Rename converters.chain to converters.pipe 2020-07-21 14:43:09 +02:00
test_dunders.py Add Python 3.10 support (#763) 2021-02-22 12:56:44 +01:00
test_filters.py Fade to Black (#392) 2018-06-10 19:40:07 +02:00
test_funcs.py Add Python 3.10 support (#763) 2021-02-22 12:56:44 +01:00
test_functional.py Undeprecate cmp (#773) 2021-02-28 13:20:40 +01:00
test_hooks.py Add attribs to resolve_types and fix test_hooks (#774) 2021-03-05 16:01:04 -08:00
test_init_subclass.py Be consistent in calling slotted classes slotted 2019-02-25 16:09:57 +01:00
test_make.py Undeprecate cmp (#773) 2021-02-28 13:20:40 +01:00
test_mypy.yml Fix mypy tests (#749) 2021-01-23 10:33:13 +01:00
test_next_gen.py Clarify next-gen auto_attribs inference rules (#742) 2020-12-30 12:53:43 +01:00
test_setattr.py Don't reset custom __setattr__ in slotted classes (#681) 2020-09-05 09:46:06 +02:00
test_slots.py Minor word smithing 2021-01-11 07:46:30 +01:00
test_validators.py Make `zope` a semi-optional test dependency (#685) 2020-09-03 06:56:17 +02:00
test_version_info.py Rename _version.py into _version_info.py 2019-10-02 16:12:03 +02:00
typing_example.py Narrower typing on Factory called with takes_self (#780) 2021-03-24 09:04:19 +01:00
utils.py Fix attribute collection (#635) 2020-04-06 11:41:52 +02:00