Last change
on this file since 3403 was
3403,
checked in by potar, 12 years ago
|
Fixed code according with pylint, pyflakes
|
-
Property svn:eol-style set to
native
|
File size:
1.3 KB
|
Rev | Line | |
---|
[818] | 1 | from zope.interface import implements |
---|
| 2 | |
---|
| 3 | from kss.demo import KSSSeleniumTestSuite, KSSSeleniumTestDirectory, \ |
---|
| 4 | KSSSeleniumTestCase |
---|
| 5 | |
---|
[3403] | 6 | from plone.app.kss.demo.zopeconfig import LoggedInManagerLayer, IResource |
---|
[818] | 7 | |
---|
| 8 | |
---|
| 9 | # |
---|
| 10 | # XXX Important message to developers |
---|
| 11 | # |
---|
| 12 | # Dear Developer! Do _not_ use the setup you see below as an example |
---|
| 13 | # for your own programs, or otherwise you will need to change |
---|
| 14 | # it later. The test suite creation interface will change in |
---|
[3402] | 15 | # the next kss.demo versions. The plugin class (PloneDemos) |
---|
| 16 | # will change in the next major KSS (and possibly Plone) version. |
---|
[818] | 17 | # This configuration file will be kept up-to-date to these changes. |
---|
| 18 | # |
---|
| 19 | # It is safe, however, to fix existing tests or drop new |
---|
| 20 | # tests in the directories set up below. |
---|
| 21 | # |
---|
| 22 | |
---|
| 23 | class PortalTabsLayer(LoggedInManagerLayer): |
---|
| 24 | setup = KSSSeleniumTestCase('install-tabs.html') |
---|
| 25 | teardown = KSSSeleniumTestCase('uninstall-tabs.html') |
---|
| 26 | |
---|
[3402] | 27 | |
---|
[818] | 28 | class PloneTabsSeleniumKssTests(object): |
---|
| 29 | implements(IResource) |
---|
| 30 | |
---|
| 31 | demos = () |
---|
| 32 | |
---|
| 33 | selenium_tests = ( |
---|
| 34 | KSSSeleniumTestSuite( |
---|
[3402] | 35 | tests=KSSSeleniumTestDirectory('selenium_tests/' +\ |
---|
| 36 | 'run_as_testmanager'), |
---|
| 37 | layer=PortalTabsLayer, |
---|
| 38 | component='quintagroup.plonetabs', |
---|
| 39 | application='quintagroup.plonetabs', |
---|
[818] | 40 | ), |
---|
| 41 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.