Skip to content

Commit

Permalink
Merge pull request #18 from plone/testisolation-fix
Browse files Browse the repository at this point in the history
testisolation fixes
  • Loading branch information
petschki authored Oct 3, 2018
2 parents d9573c5 + 646de39 commit f1d39e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Products/CMFFormController/tests/testRedirectTo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions news/18.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fix testisolation problems

[petschki]

0 comments on commit f1d39e0

Please sign in to comment.