cryptography/tests
Patrick Rauscher 738598d1cf
make x509.name.NameAttribute use Generic to overload get_attributes_for_oid (#12068)
* make x509.name.NameAttribute use Generic to overload get_attributes_for_oid

* reformat code using ruff format (not only ruff check)

* use subtypes of ObjectIdentifier to allow type detection in get_attributes_for_oid

* add missing overloads for test cases

* revert most changes to achieve base plate

* ruff format

* try typing.Union for python 3.9

* add return_string to get_attributes_for_oid for overload

* fix documentation link and flake8

* fixup docs

* docs: add versionadded for param return_string

* add test case

* Revert "add return_string to get_attributes_for_oid for overload"

This reverts commit c4a2a5f0273ea8e60f3d5425a015b0563586b67a.

* Revert "fix documentation link and flake8"

This reverts commit b79a4ecf73f1425bd9304aefd2eaf8a89329610b.

* make NameAttributeValueType covariant
2024-12-06 22:23:28 -05:00
..
bench Added a benchmark for fernet (#11088) 2024-06-08 07:52:13 -07:00
hazmat Support for copying private keys (#12110) 2024-12-06 11:14:14 -05:00
wycheproof Updates for ruff 0.3.1 (#10548) 2024-03-07 10:57:37 -08:00
x509 make x509.name.NameAttribute use Generic to overload get_attributes_for_oid (#12068) 2024-12-06 22:23:28 -05:00
__init__.py
conftest.py tests, ci: plumb x509-limbo-root (#9871) 2023-11-13 19:48:28 +00:00
deprecated_module.py refactor utils.deprecated to be more mypy friendly (#6923) 2022-03-03 03:46:30 +08:00
doubles.py
test_cryptography_utils.py Update CI for py3.11 release (#7743) 2022-10-26 14:44:03 +09:00
test_fernet.py Add support for extract_timestamp in MultiFernet (#11427) 2024-08-13 15:42:35 +00:00
test_meta.py
test_utils.py utils.int_to_bytes: guard against zero-length (#11173) 2024-06-29 15:23:57 +00:00
test_warnings.py refactor utils.deprecated to be more mypy friendly (#6923) 2022-03-03 03:46:30 +08:00
utils.py Ensure curves are supported in determinisic ECDSA tests (#10917) 2024-05-01 21:55:41 -07:00