-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from plone/python3
Python3
- Loading branch information
Showing
12 changed files
with
95 additions
and
88 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
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
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
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
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
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
import unittest | ||
|
||
from Products.CMFCore.utils import getToolByName | ||
from plone.app.debugtoolbar.testing import PLONE_APP_DEBUGTOOLBAR_INTEGRATION_TESTING # noqa: E501 | ||
from Products.CMFPlone.utils import get_installer | ||
|
||
from plone.app.debugtoolbar.testing import\ | ||
PLONE_APP_DEBUGTOOLBAR_INTEGRATION_TESTING | ||
import unittest | ||
|
||
|
||
class TestExample(unittest.TestCase): | ||
class TestSetup(unittest.TestCase): | ||
|
||
layer = PLONE_APP_DEBUGTOOLBAR_INTEGRATION_TESTING | ||
|
||
def setUp(self): | ||
self.app = self.layer['app'] | ||
self.portal = self.layer['portal'] | ||
self.qi_tool = getToolByName(self.portal, 'portal_quickinstaller') | ||
|
||
self.request = self.layer['request'] | ||
self.qi_tool = get_installer(self.portal, self.request) | ||
|
||
def test_product_is_installed(self): | ||
""" Validate that our products GS profile has been run and the product | ||
""" Validate that our products GS profile has been run and the product | ||
installed | ||
""" | ||
pid = 'plone.app.debugtoolbar' | ||
installed = [p['id'] for p in self.qi_tool.listInstalledProducts()] | ||
self.assertTrue(pid in installed, | ||
'package appears not to have been installed') | ||
self.assertTrue( | ||
self.qi_tool.is_product_installed(pid), | ||
'package appears not to have been installed', | ||
) |