From e73c716aeefdb8a5ab358e8c94f2fb676e8938cf Mon Sep 17 00:00:00 2001 From: Philip Bauer Date: Sat, 22 Sep 2018 17:00:03 +0200 Subject: [PATCH] Switch to new TestCase using AT after PloneTestcase is now DX. --- CHANGES.rst | 4 ++-- src/plone/app/imaging/testing.py | 3 +-- src/plone/app/imaging/tests/base.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 69fa1c8..cbab61e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,8 +14,8 @@ New features: Bug fixes: -- *add item here* - +- Switch to new TestCase using AT after PloneTestcase is now DX. + [pbauer] 2.0.7 (2018-02-05) ------------------ diff --git a/src/plone/app/imaging/testing.py b/src/plone/app/imaging/testing.py index ac0b310..010a0e2 100644 --- a/src/plone/app/imaging/testing.py +++ b/src/plone/app/imaging/testing.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from plone.app.imaging.monkey import unpatchImageField from plone.app import testing -from plone.app.testing.bbb import PloneTestCaseFixture +from plone.app.testing.bbb_at import PloneTestCaseFixture from plone.testing import z2 @@ -23,7 +23,6 @@ def tearDownZope(self, app): z2.uninstallProduct(app, 'plone.app.imaging') - PTC_FIXTURE = ImagingFixture() imaging = testing.FunctionalTesting( bases=(PTC_FIXTURE,), name='ImagingTestCase:Functional') diff --git a/src/plone/app/imaging/tests/base.py b/src/plone/app/imaging/tests/base.py index 1cd4902..da1347f 100644 --- a/src/plone/app/imaging/tests/base.py +++ b/src/plone/app/imaging/tests/base.py @@ -4,7 +4,7 @@ from plone.app.imaging import testing from plone.app.testing import TEST_USER_NAME from plone.app.testing import TEST_USER_PASSWORD -from plone.app.testing.bbb import PloneTestCase +from plone.app.testing.bbb_at import PloneTestCase from plone.registry.interfaces import IRegistry from plone.testing.z2 import Browser from Products.CMFPlone.interfaces.controlpanel import IImagingSchema