Skip to content

Commit

Permalink
Revert "Readded doctests which were not run after migration to p.a.te…
Browse files Browse the repository at this point in the history
…sting"
  • Loading branch information
pbauer committed Jun 2, 2015
1 parent 135eb81 commit 9966a0f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
3 changes: 1 addition & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Changelog
3.0.9 (unreleased)
------------------

- Readded doctests which were not run after port to plone.app.testing
[tomgross]
- Nothing changed yet.


3.0.8 (2015-03-21)
Expand Down
2 changes: 1 addition & 1 deletion Products/CMFQuickInstallerTool/tests/install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ First we set three convenience variables for later use:
>>> from Products.CMFQuickInstallerTool.interfaces import IQuickInstallerTool
>>> from Products.CMFCore.utils import getToolByName

>>> portal = layer['portal']
>>> portal = layer['plone']
>>> portal
<PloneSite at /plone>

Expand Down
11 changes: 3 additions & 8 deletions Products/CMFQuickInstallerTool/tests/profiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ We now expect to see Products.Product1 and Products.Product2 in the list of
installable products, but not Products.Product3.

>>> installable = [x['id'] for x in qi.listInstallableProducts()]
>>> 'Products.Product1' in installable
True

>>> 'Products.Product2' in installable
True

>>> 'Products.Product3' in installable
False
>>> self.failUnless('Products.Product1' in installable)
>>> self.failUnless('Products.Product2' in installable)
>>> self.failIf('Products.Product3' in installable)
5 changes: 2 additions & 3 deletions Products/CMFQuickInstallerTool/tests/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from Products.GenericSetup import EXTENSION, profile_registry
from plone.app import testing
from plone.testing import layered
from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_FIXTURE

from Products.CMFQuickInstallerTool.QuickInstallerTool import QuickInstallerTool
from Products.CMFQuickInstallerTool.events import handleBeforeProfileImportEvent
Expand All @@ -18,7 +17,7 @@

class QuickInstallerCaseFixture(testing.PloneSandboxLayer):

defaultBases = (PLONE_APP_CONTENTTYPES_FIXTURE, )
defaultBases = (testing.PLONE_FIXTURE, )

def setUpZope(self, app, configurationContext):
sm = zope.component.getSiteManager()
Expand Down Expand Up @@ -62,7 +61,7 @@ def test_suite():
for testfile in ['actions.txt', 'profiles.txt', 'install.txt']:
suite.addTest(layered(
doctest.DocFileSuite(
testfile,
'actions.txt',
package='Products.CMFQuickInstallerTool.tests',
optionflags=OPTIONFLAGS),
layer=CQI_FUNCTIONAL_TESTING))
Expand Down

0 comments on commit 9966a0f

Please sign in to comment.