From e1a2935ff4f0fbbf8c2c2ba4e86fdc165ba91218 Mon Sep 17 00:00:00 2001 From: hvelarde Date: Thu, 20 Jul 2017 15:38:34 -0300 Subject: [PATCH] Run tests only if Dexterity-based content types are installed --- sc/social/like/tests/test_upgrades.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sc/social/like/tests/test_upgrades.py b/sc/social/like/tests/test_upgrades.py index 3a7c0e95..854ddb36 100644 --- a/sc/social/like/tests/test_upgrades.py +++ b/sc/social/like/tests/test_upgrades.py @@ -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 @@ -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'