Skip to content

Commit

Permalink
Include workaround for plone/plone.app.testing#39
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Nov 2, 2017
1 parent fdbea93 commit d530a06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/brasil/gov/portal/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
from plone.testing import z2


# FIXME: workaround for https://github.com/plone/plone.app.testing/issues/39
autoform = ('plone.autoform', {'loadZCML': True})
tinymce = ('Products.TinyMCE', {'loadZCML': True})
products = list(PLONE_FIXTURE.products)
products.insert(products.index(tinymce), autoform)
PLONE_FIXTURE.products = tuple(products)


class Fixture(PloneSandboxLayer):

defaultBases = (PLONE_FIXTURE,)
Expand Down

0 comments on commit d530a06

Please sign in to comment.