Author: reebalazs
Date: Sat Mar 29 19:33:36 2008
New Revision: 53106
Modified:
kukit/kss.demo/branch/1.4-kss-test/kss/demo/resource.py
Log:
Fix missing inheritance
Modified: kukit/kss.demo/branch/1.4-kss-test/kss/demo/resource.py
==============================================================================
--- kukit/kss.demo/branch/1.4-kss-test/kss/demo/resource.py (original)
+++ kukit/kss.demo/branch/1.4-kss-test/kss/demo/resource.py Sat Mar 29
19:33:36 2008
@@ -177,7 +177,7 @@
# convenience access for page templates
__allow_access_to_unprotected_subobjects__ = 1
- tests = ()
+ tests = KSSSeleniumEmptyTestCase()
component = u''
application = u''
# default is an empty layer.
@@ -189,9 +189,9 @@
set_prod_mode = KSSSeleniumTestCase('browser/setProdMode.html')
def __init__(self, tests=None, component=u'', application=u'', layer=None,
dual_mode=None):
- self.find_test_root_dir()
if tests is not None:
self.tests = tests
+ self.test_root_dir = self.tests.test_root_dir
if component:
self.component = component
if application:
@@ -202,14 +202,13 @@
self.dual_mode = dual_mode
def get_testcase_paths(self):
+ # ... Remark: order is not important here
return itertools.chain(
self.layer.setup.get_testcase_paths(),
self.tests.get_testcase_paths(),
- self.layer.teardown.get_testcase_paths(),
- (
- self.find_absolute_path('browser/setDevMode.html'),
- self.find_absolute_path('browser/setProdMode.html'),
- ),
+ self.layer.teardown.get_testcase_paths(),
+ self.set_prod_mode.get_testcase_paths(),
+ self.set_devel_mode.get_testcase_paths(),
)
def get_relative_urls(self, view):
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins