#1474 closed defect (fixed)
test that classes declared to implement a zope interface actually implement it
Reported by: | davidsarah | Owned by: | zooko |
---|---|---|---|
Priority: | major | Milestone: | 1.9.0 |
Component: | code | Version: | 1.8.2 |
Keywords: | zope.interface test review-needed | Cc: | |
Launchpad Bug: |
Description
... using zope.interface.verify.verifyClass or verifyObject as described here.
Attachments (4)
Change History (11)
Changed at 2011-08-25T01:12:29Z by davidsarah
comment:1 Changed at 2011-08-26T21:48:41Z by davidsarah
The current patch isn't ready for review because it outputs warnings to stderr as classes are loaded. We probably want to collect the warnings and output them in a unit test, and we may want to do so only when running the test suite. The implementation is also a bit too dependent on semi-documented (that is, documented only in source code comments) parts of zope.interface.
Changed at 2011-09-15T16:19:24Z by davidsarah
Add a script 'misc/coding_tools/check-interfaces.py' that checks whether zope interfaces are enforced. Also add 'check-interfaces', 'version-and-path', and 'code-checks' targets to the Makefile. fixes #1474
comment:2 Changed at 2011-09-15T16:22:23Z by davidsarah
- Keywords review-needed added
- Milestone changed from undecided to 1.9.0
- Owner changed from somebody to zooko
attachment:check-interfaces.darcs.patch is much less disruptive than the previous patch; it doesn't change the behaviour at runtime, only when check-interfaces.py is run (e.g. by 'make check-interfaces' or 'make code-checks').
comment:3 Changed at 2011-09-20T15:51:22Z by david-sarah@…
In 87a936564e393a2e:
comment:4 Changed at 2011-09-24T21:32:40Z by david-sarah@…
- Resolution set to fixed
- Status changed from new to closed
In 417054aabad6cf4b:
comment:5 Changed at 2011-09-24T21:32:41Z by david-sarah@…
In f1445ce0b2c347b2:
comment:6 Changed at 2011-09-24T21:32:41Z by david-sarah@…
In 9ca8ff7bfce1a216:
comment:7 Changed at 2011-09-24T21:32:41Z by david-sarah@…
In 32262239e5c21063:
Results from enforcing interfaces