[KSS-checkins] r49299 - kukit/kss.zope/trunk/kss/zope
reebalazs at codespeak.net
reebalazs at codespeak.net
Sun Dec 2 21:12:33 CET 2007
Author: reebalazs
Date: Sun Dec 2 21:12:32 2007
New Revision: 49299
Modified:
kukit/kss.zope/trunk/kss/zope/interfaces.py
kukit/kss.zope/trunk/kss/zope/registry.txt
Log:
Add some superfitial tests for the demo registry extensions
Modified: kukit/kss.zope/trunk/kss/zope/interfaces.py
==============================================================================
--- kukit/kss.zope/trunk/kss/zope/interfaces.py (original)
+++ kukit/kss.zope/trunk/kss/zope/interfaces.py Sun Dec 2 21:12:32 2007
@@ -47,6 +47,20 @@
Id must follow the namespace-name format, if not in the core.
'''
+ # --
+ # Extensions for kss.demo
+ # --
+
+ def zope_demos(id):
+ """Return list of zope demo desriptors, for kss.demo."""
+
+ def zope_selenium_testcases(id):
+ """Return list of selenium test case descriptors, for kss.demo.
+
+ (A descriptor is a tuple of an owner instance used for directory traverse,
+ and an actual testcase descriptor. Currently specifying a directory.)
+ """
+
class ICommandSet(Interface):
'Methods of this class implement a command set'
Modified: kukit/kss.zope/trunk/kss/zope/registry.txt
==============================================================================
--- kukit/kss.zope/trunk/kss/zope/registry.txt (original)
+++ kukit/kss.zope/trunk/kss/zope/registry.txt Sun Dec 2 21:12:32 2007
@@ -79,6 +79,18 @@
KeyError: 'Selector "NONEXISTENT" is not registered.'
+Demos and selenium tests
+------------------------
+
+We can get the list of demos and selenium test suites from the
+registry as well.
+
+ >>> zope_demos = registry.zope_demos()
+ >>> zope_selenium_testsuites = registry.zope_selenium_testsuites()
+
+These are for the private usage of kss.demo. We don't test the content
+of these further from here.
+
BBB
===
More information about the Kukit-checkins
mailing list