Skip to content

Commit

Permalink
Run tests only if Dexterity-based content types are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Jul 20, 2017
1 parent 4dcbf73 commit e1a2935
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sc/social/like/tests/test_upgrades.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from plone import api
from sc.social.like.config import HAS_DEXTERITY
from sc.social.like.config import IS_PLONE_5
from sc.social.like.interfaces import ISocialLikeSettings
from sc.social.like.testing import INTEGRATION_TESTING
Expand Down Expand Up @@ -297,6 +298,7 @@ def test_upgrade_to_3046_registrations(self):
self.assertGreaterEqual(int(version), int(self.to_version))
self.assertEqual(self.total_steps, 1)

@unittest.skipUnless(HAS_DEXTERITY, 'plone.app.contenttypes must be installed')
def test_reindex_catalog(self):
# check if the upgrade step is registered
title = u'Reindex catalog'
Expand Down

0 comments on commit e1a2935

Please sign in to comment.