Skip to content

Commit

Permalink
Skip resource registry test in Plone 5 until find a way to test this
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Apr 6, 2016
1 parent dcf1663 commit 5471557
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/collective/lazysizes/tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import unittest


IS_PLONE_5 = api.env.plone_version().startswith('5')

JS = (
'++resource++collective.lazysizes/ls.respimg.min.js',
'++resource++collective.lazysizes/lazysizes.min.js',
Expand All @@ -30,6 +32,7 @@ def test_installed(self):
def test_addon_layer(self):
self.assertIn(ILazySizesLayer, registered_layers())

@unittest.skipIf(IS_PLONE_5, 'http://stackoverflow.com/q/36454395/644075')
def test_jsregistry(self):
resource_ids = self.portal['portal_javascripts'].getResourceIds()
for js in JS:
Expand Down

0 comments on commit 5471557

Please sign in to comment.