From 0b22727d8b50a8bf385e3c67e5d3c0e0018d8752 Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Wed, 3 Oct 2018 13:46:40 +0200 Subject: [PATCH 1/2] add tearDown method to avoid isolation errors --- Products/CMFFormController/tests/testRedirectTo.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Products/CMFFormController/tests/testRedirectTo.py b/Products/CMFFormController/tests/testRedirectTo.py index b969fad..4424014 100644 --- a/Products/CMFFormController/tests/testRedirectTo.py +++ b/Products/CMFFormController/tests/testRedirectTo.py @@ -67,6 +67,14 @@ def setUp(self): 'Authorization', 'Basic {0}:{1}'.format( TEST_USER_NAME, TEST_USER_PASSWORD)) + def tearDown(self): + # still have to delete the created pages manually + # because of test isolation problems + del self.portal['page'] + del self.portal['front-page'] + transaction.commit() + super(TestRedirectToFunctional, self).tearDown() + def test_regression(self): csrf_token = createToken() target = 'front-page' From 646de392e725f7db01ce8f0900e8b8edcbb76c0e Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Wed, 3 Oct 2018 16:00:33 +0200 Subject: [PATCH 2/2] add changenote --- news/18.bugfix | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 news/18.bugfix diff --git a/news/18.bugfix b/news/18.bugfix new file mode 100644 index 0000000..f7466a7 --- /dev/null +++ b/news/18.bugfix @@ -0,0 +1,3 @@ +fix testisolation problems + +[petschki] \ No newline at end of file