def __init__(self): """Init the Command and add custom styles""" super(Command, self).__init__() self.style.TITLE = self.style.SQL_FIELD self.style.STEP = self.style.SQL_COLTYPE self.style.ITEM = self.style.HTTP_INFO disconnect_zinnia_signals()
def suite(): """Suite of TestCases for Django""" suite = TestSuite() loader = TestLoader() test_cases = (ManagersTestCase, EntryTestCase, EntryGetBaseModelTestCase, SignalsTestCase, EntryHtmlContentTestCase, CategoryTestCase, ZinniaViewsTestCase, ZinniaFeedsTestCase, ZinniaSitemapsTestCase, ComparisonTestCase, DirectoryPingerTestCase, ExternalUrlsPingerTestCase, TemplateTagsTestCase, QuickEntryTestCase, URLShortenerTestCase, EntryCommentModeratorTestCase, ZinniaCustomDetailViews, SpamCheckerTestCase, EntryAdminTestCase, CategoryAdminTestCase, MixinTestCase, LongEnoughTestCase, AuthorTestCase) if 'django_xmlrpc' in settings.INSTALLED_APPS: test_cases += (PingBackTestCase, MetaWeblogTestCase) for test_class in test_cases: tests = loader.loadTestsFromTestCase(test_class) suite.addTests(tests) return suite disconnect_zinnia_signals()
from zinnia.tests.mixins import MixinTestCase from zinnia.signals import disconnect_zinnia_signals def suite(): """Suite of TestCases for Django""" suite = TestSuite() loader = TestLoader() test_cases = (ManagersTestCase, EntryTestCase, EntryGetBaseModelTestCase, SignalsTestCase, EntryHtmlContentTestCase, CategoryTestCase, ZinniaViewsTestCase, ZinniaFeedsTestCase, ZinniaSitemapsTestCase, ComparisonTestCase, DirectoryPingerTestCase, ExternalUrlsPingerTestCase, TemplateTagsTestCase, QuickEntryTestCase, URLShortenerTestCase, EntryCommentModeratorTestCase, ZinniaCustomDetailViews, SpamCheckerTestCase, EntryAdminTestCase, CategoryAdminTestCase, MixinTestCase) if 'django_xmlrpc' in settings.INSTALLED_APPS: test_cases += (PingBackTestCase, MetaWeblogTestCase) for test_class in test_cases: tests = loader.loadTestsFromTestCase(test_class) suite.addTests(tests) return suite disconnect_zinnia_signals()