From 488a317abdfa2a1fa04efd2f2d8d22a433beaaf8 Mon Sep 17 00:00:00 2001 From: Jason Madden Date: Wed, 17 Mar 2021 07:35:12 -0500 Subject: Update the Adaptation docs to be more concrete. 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. --- src/zope/interface/tests/test_adapter.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/zope/interface/tests') 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 -- cgit v1.2.1