Skip to content

Commit

Permalink
Skip TinyMCE tests when running under Plone 5
Browse files Browse the repository at this point in the history
We need to review those features.

Refs. #71
  • Loading branch information
hvelarde committed Sep 6, 2017
1 parent 96f49d2 commit 77a4cd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sc/embedder/tests/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from sc.embedder.content.embedder import Embedder
from sc.embedder.content.embedder import IEmbedder
from sc.embedder.testing import INTEGRATION_TESTING
from sc.embedder.testing import IS_PLONE_5
from zope.interface.verify import verifyClass
from zope.interface.verify import verifyObject

Expand Down Expand Up @@ -267,6 +268,7 @@ def test_soundcloud_oembed(self):
# self.assertEqual(
# u'166', add_form.widgets['height'].value)

@unittest.skipIf(IS_PLONE_5, 'FIXME: https://github.com/simplesconsultoria/sc.embedder/issues/71')
def test_videojs(self):
add_view = self.folder.unrestrictedTraverse('++add++sc.embedder')
add_form = add_view.form_instance
Expand Down Expand Up @@ -368,11 +370,13 @@ def test_url_not_found(self):
expected = u'URL not found'
self.assertEqual(msg[0].message, expected)

@unittest.skipIf(IS_PLONE_5, 'FIXME: https://github.com/simplesconsultoria/sc.embedder/issues/71')
def test_jsonimagefolderlisting(self):
# Now we can get a listing of the images and check if our image is there.e/'})
output = self.folder.restrictedTraverse('@@tinymce-jsonscembedderfolderlisting')(False, 'http://nohost/plone/test-folder')
self.assertIn('"id": "multimedia"', output)

@unittest.skipIf(IS_PLONE_5, 'FIXME: https://github.com/simplesconsultoria/sc.embedder/issues/71')
def test_jsonimagesearch(self):
# The images have a similar search method. Let's find our image.
output = self.portal.restrictedTraverse('@@tinymce-jsonscembeddersearch')('Multimedia')
Expand Down

0 comments on commit 77a4cd0

Please sign in to comment.