Skip to content

Commit

Permalink
Merge pull request #20 from plone/thet-zope4
Browse files Browse the repository at this point in the history
Zope4
  • Loading branch information
thet committed Jan 29, 2016
2 parents 3ef13fa + 85d8f5c commit bc0589f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGES.rst
Expand Up @@ -10,7 +10,11 @@ New:

Fixes:

- *add item here*
- Fix ``layers.rst`` doctest to be compatible with older and newer zope.testrunner layer ordering.
[thet]

- Depend on ``zope.testrunner`` and fix deprecated usage of ``zope.testing.testrunner``.
[thet]


5.0b6 (2015-08-22)
Expand Down
2 changes: 1 addition & 1 deletion plone/app/testing/helpers.rst
Expand Up @@ -12,7 +12,7 @@ their canonical locations at ``plone.app.testing.helpers``.

For testing, we need a testrunner

>>> from zope.testing.testrunner import runner
>>> from zope.testrunner import runner

Let's create a custom fixture layer that exercises these helpers. In this
layer, we will perform the following setup:
Expand Down
13 changes: 6 additions & 7 deletions plone/app/testing/layers.rst
Expand Up @@ -9,7 +9,8 @@ their canonical locations at ``plone.app.testing.layers``.

For testing, we need a testrunner

>>> from zope.testing.testrunner import runner
>>> from zope.testrunner import runner


Plone site fixture
~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -366,9 +367,8 @@ When the server is torn down, the ZServer thread is stopped.

>>> runner.tear_down_unneeded(options, [], setupLayers)
Tear down plone.app.testing.layers.Plone:ZServer in ... seconds.
Tear down plone.app.testing.layers.PloneFixture in ... seconds.
Tear down plone.testing.z2.ZServer in ... seconds.
Tear down plone.testing.z2.Startup in ... seconds.
...Tear down plone.app.testing.layers.PloneFixture in ... seconds.
...Tear down plone.testing.z2.Startup in ... seconds.
Tear down plone.testing.zca.LayerCleanup in ... seconds.

>>> conn = urllib2.urlopen(portal_url + '/folder1', timeout=5)
Expand Down Expand Up @@ -485,9 +485,8 @@ When the server is torn down, the FTP server thread is stopped.

>>> runner.tear_down_unneeded(options, [], setupLayers)
Tear down plone.app.testing.layers.Plone:FTPServer in ... seconds.
Tear down plone.app.testing.layers.PloneFixture in ... seconds.
Tear down plone.testing.z2.FTPServer in ... seconds.
Tear down plone.testing.z2.Startup in ... seconds.
...Tear down plone.app.testing.layers.PloneFixture in ... seconds.
...Tear down plone.testing.z2.Startup in ... seconds.
Tear down plone.testing.zca.LayerCleanup in ... seconds.

>>> ftpClient.connect(host, port, timeout=5)
Expand Down
2 changes: 1 addition & 1 deletion plone/app/testing/selenium.rst
Expand Up @@ -44,7 +44,7 @@ and then kill the backgrouned process.

For testing, we need a testrunner

>>> from zope.testing.testrunner import runner
>>> from zope.testrunner import runner

The ``SELENIUM_PLONE_FUNCTIONAL_TESTING`` layer instantiates the
``FunctionalTesting`` class with two bases: ``SELENIUM_FIXTURE``, as
Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -12,6 +12,7 @@
'transaction',
'zope.interface',
'zope.publisher',
'zope.testrunner',
]

robot_require = ['robotsuite>=1.4.0',
Expand Down

0 comments on commit bc0589f

Please sign in to comment.