diff options
author | Jason Madden <jamadden@gmail.com> | 2021-03-17 07:35:12 -0500 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2021-03-17 07:39:49 -0500 |
commit | 488a317abdfa2a1fa04efd2f2d8d22a433beaaf8 (patch) | |
tree | ee112ad969b0ca5987d56b471dd34818e67f8a22 /src/zope/interface/tests/test_adapter.py | |
parent | dd69666aae99afe0d47b3af81149fbd7e97f59fe (diff) | |
download | zope-interface-docs-update.tar.gz |
Update the Adaptation docs to be more concrete.docs-update
This should help provide better motivating use cases. Examples inspired by https://glyph.twistedmatrix.com/2021/03/interfaces-and-protocols.html
Also some minor typo fixes and updates to comments.
Diffstat (limited to 'src/zope/interface/tests/test_adapter.py')
-rw-r--r-- | src/zope/interface/tests/test_adapter.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/zope/interface/tests/test_adapter.py b/src/zope/interface/tests/test_adapter.py index a80e4f1..2412f41 100644 --- a/src/zope/interface/tests/test_adapter.py +++ b/src/zope/interface/tests/test_adapter.py @@ -799,6 +799,13 @@ class BaseAdapterRegistryTests(unittest.TestCase): class CustomTypesBaseAdapterRegistryTests(BaseAdapterRegistryTests): + """ + This class may be extended by other packages to test their own + adapter registries that use custom types. (So be cautious about + breaking changes.) + + One known user is ``zope.component.persistentregistry``. + """ def _getMappingType(self): return CustomMapping |