Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
197 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# Copy to buildout.cfg and uncomment one config | ||
[buildout] | ||
extends = | ||
http://svn.plone.org/svn/collective/buildout/plonetest/plone-4.1.x.cfg | ||
develop = | ||
. | ||
|
||
package-name = collective.listingviews | ||
extends = | ||
# conf/test-3.3.x.cfg | ||
conf/test-4.2.x.cfg | ||
|
||
parts += omelette | ||
[plone] | ||
eggs += | ||
collective.listingviews | ||
sauna.reload | ||
zope-conf-additional = %import sauna.reload | ||
|
||
[test] | ||
recipe = zc.recipe.testrunner | ||
eggs = | ||
${instance:eggs} | ||
collective.listingviews [test] | ||
defaults = ['-s', '${buildout:package-name}'] | ||
|
||
[omelette] | ||
recipe = collective.recipe.omelette | ||
eggs = ${instance:eggs} | ||
eggs = | ||
${plone:eggs} | ||
plone.app.collection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[buildout] | ||
extends = http://build.pythonpackages.com/buildout/plone/3.3.x-dev | ||
|
||
[plone] | ||
#eggs += mr.migrator | ||
eggs += funnelweb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
[buildout] | ||
allow-hosts = | ||
dist.plone.org | ||
pypi.python.org | ||
extends = http://dist.plone.org/release/4.1-latest/versions.cfg | ||
dump-picked-versions-file = picked.cfg | ||
exec-sitecustomize = false | ||
extensions = | ||
mr.developer | ||
buildout.dumppickedversions | ||
find-links = http://dist.plone.org/thirdparty/elementtree-1.2.7-20070827-preview.zip | ||
sources = sources | ||
sources-dir = ${buildout:directory}/src | ||
#include-site-packages = false | ||
parts = | ||
instance | ||
test | ||
develop = . | ||
versions = versions | ||
|
||
|
||
[test] | ||
recipe = zc.recipe.testrunner | ||
eggs = | ||
pretaweb.metadata [tests] | ||
z3c.autoinclude | ||
zc.recipe.egg | ||
|
||
|
||
[lxml] | ||
recipe = z3c.recipe.staticlxml | ||
egg = lxml == 2.2.8 | ||
|
||
[PIL] | ||
# Build egg with Chris McDonough's custom packaging of setuptools-compatibile PIL | ||
# http://article.gmane.org/gmane.comp.web.zope.devel/13999 | ||
recipe = zc.recipe.egg | ||
egg = PIL==1.1.6 | ||
find-links = http://dist.repoze.org/PIL-1.1.6.tar.gz | ||
|
||
[instance] | ||
recipe = plone.recipe.zope2instance | ||
debug-mode = on | ||
verbose-security = on | ||
user = admin:admin | ||
eggs = | ||
${PIL:egg} | ||
Plone | ||
${lxml:egg} | ||
pretaweb.metadata | ||
plone.reload | ||
ipdb | ||
|
||
zcml-eggs = | ||
|
||
[mkrelease] | ||
recipe = zc.recipe.egg | ||
eggs = | ||
jarn.mkrelease | ||
collective.checkdocs | ||
|
||
[sources] | ||
|
||
[versions] | ||
distribute = 0.6.19 | ||
zc.buildout = 1.5.2 | ||
zc.recipe.egg = 1.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[buildout] | ||
allow-hosts = | ||
*.plone.org | ||
*.python.org | ||
*.sourceforge.net | ||
extensions = | ||
buildout.bootstrap | ||
buildout.dumppickedversions | ||
mr.developer | ||
extends = http://dist.plone.org/release/4.2rc2/versions.cfg | ||
find-links = | ||
http://dist.plone.org/thirdparty/elementtree-1.2.7-20070827-preview.zip | ||
http://downloads.sourceforge.net/project/docutils/docutils/0.9/docutils-0.9.tar.gz | ||
parts = | ||
plone | ||
omelette | ||
zopepy | ||
test | ||
versions = versions | ||
auto-checkout = * | ||
|
||
[omelette] | ||
recipe = collective.recipe.omelette | ||
eggs = ${plone:eggs} | ||
|
||
|
||
[plone] | ||
recipe = plone.recipe.zope2instance | ||
verbose-security = on | ||
eggs = | ||
Pillow | ||
Plone | ||
zope2_bootstrap | ||
Products.DocFinderTab | ||
Products.FSDump | ||
# plone.app.debugtoolbar | ||
user = admin:admin | ||
zcml = zope2_bootstrap | ||
|
||
|
||
|
||
[zopepy] | ||
recipe = zc.recipe.egg | ||
eggs = ${plone:eggs} | ||
interpreter = zopepy | ||
|
||
[test] | ||
recipe = zc.recipe.testrunner | ||
eggs = ${plone:eggs} | ||
|
||
|
||
[versions] | ||
distribute = 0.6.27 | ||
zc.buildout = 1.5.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import unittest2 as unittest | ||
import doctest | ||
from collective.listingviews.testing import\ | ||
COLLECTIVE_LISTINGVIEWS_INTEGRATION_TESTING | ||
|
||
|
||
|
||
OPTIONFLAGS = doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE | ||
|
||
|
||
def test_suite(): | ||
suite = unittest.TestSuite() | ||
# seltest = doctest.DocFileSuite('selenium.rst', optionflags=OPTIONFLAGS) | ||
# Run selenium tests on level 2, as it requires a correctly configured | ||
# Firefox browser | ||
# seltest.level = 2 | ||
layer = COLLECTIVE_LISTINGVIEWS_INTEGRATION_TESTING | ||
suite.addTests([ | ||
doctest.DocFileSuite('tests/listingviews.rst', optionflags=OPTIONFLAGS, globs=dict(layer=layer)), | ||
]) | ||
suite.layer = COLLECTIVE_LISTINGVIEWS_INTEGRATION_TESTING | ||
return suite |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
>>> from plone.testing.z2 import Browser | ||
>>> from plone.app.testing import TEST_USER_ID, TEST_USER_NAME, TEST_USER_PASSWORD, setRoles, login | ||
>>> portal = layer['portal'] | ||
>>> browser = Browser(portal) | ||
>>> portalURL = portal.absolute_url() | ||
>>> browser.open(portalURL) | ||
|
||
>>> browser.open(portal.absolute_url()+'/@@listingviews_controlpanel') | ||
|
||
>>> browser.getControl(name='__ac_name').value = TEST_USER_NAME | ||
>>> browser.getControl(name='__ac_password').value = TEST_USER_PASSWORD | ||
>>> browser.getControl(name='submit').click() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters