-
-
Notifications
You must be signed in to change notification settings - Fork 6
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 #33 from plone/python3
fix diff and tests in py3
- Loading branch information
Showing
21 changed files
with
189 additions
and
165 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
# BaseTestCase | ||
|
||
from plone.app.testing.bbb import PloneTestCase | ||
from Products.CMFDiffTool.testing import CMFDiffToolATLayer | ||
from Products.CMFDiffTool.testing import CMFDiffToolDXLayer | ||
from Products.CMFDiffTool.testing import CMFDiffToolLayer | ||
|
||
import six | ||
import unittest | ||
|
||
|
||
class BaseTestCase(PloneTestCase): | ||
class BaseDXTestCase(unittest.TestCase): | ||
""" A base testing class for CMFDiffTool | ||
It includes a layer which installes the product | ||
and some testing dependencies in a Plone site. | ||
""" | ||
layer = CMFDiffToolLayer | ||
layer = CMFDiffToolDXLayer | ||
|
||
def setUp(self): | ||
self.portal = self.layer['portal'] | ||
|
||
class BaseATTestCase(PloneTestCase): | ||
""" A base testing class for CMFDiffTool | ||
|
||
It includes a layer which installes the product | ||
and some testing dependencies in a Plone site. | ||
""" | ||
layer = CMFDiffToolATLayer | ||
if six.PY2: | ||
from plone.app.testing.bbb import PloneTestCase | ||
from Products.CMFDiffTool.testing import CMFDiffToolATLayer | ||
|
||
class BaseATTestCase(PloneTestCase): | ||
""" A base testing class for CMFDiffTool | ||
class BaseDXTestCase(PloneTestCase): | ||
""" A base testing class for CMFDiffTool | ||
It includes a layer which installes the product | ||
and some testing dependencies in a Plone site. | ||
""" | ||
layer = CMFDiffToolDXLayer | ||
It includes a layer which installes the product | ||
and some testing dependencies in a Plone site. | ||
""" | ||
layer = CMFDiffToolATLayer |
Oops, something went wrong.