Skip to content

Commit

Permalink
Skip contrains test under Plone 5.0 as no content types are installed…
Browse files Browse the repository at this point in the history
… by default
  • Loading branch information
hvelarde committed Aug 31, 2014
1 parent 23cfd1d commit ad33ded
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/collective/liveblog/tests/test_liveblog.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def test_is_referenceable(self):
self._enable_behavior('Liveblog', IReferenceable.__identifier__)
self.assertTrue(IReferenceable.providedBy(self.liveblog))

@unittest.skipIf(
api.env.plone_version() >= '5.0',
'No content types installed by default in Plone >=5.0'
)
def test_content_types_constrains(self):
allowed_types = [t.getId() for t in self.liveblog.allowedContentTypes()]
self.assertListEqual(allowed_types, ['Image'])

0 comments on commit ad33ded

Please sign in to comment.