Loading tests/model_package/tests.py +8 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,14 @@ class Advertisement(models.Model): class ModelPackageTests(TestCase): @classmethod def setUpClass(cls): super(ModelPackageTests, cls).setUpClass() # This cleanup is necessary because contrib.sites cache # makes tests interfere with each other, see #11505 Site.objects.clear_cache() def test_m2m_tables_in_subpackage_models(self): """ Regression for #12168: models split into subpackages still get M2M Loading tests/syndication_tests/tests.py +7 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ try: except ImportError: pytz = None from django.contrib.sites.models import Site from django.contrib.syndication import views from django.core.exceptions import ImproperlyConfigured from django.test import TestCase, override_settings Loading Loading @@ -55,6 +56,12 @@ class SyndicationFeedTest(FeedTestCase): """ Tests for the high-level syndication feed framework. """ @classmethod def setUpClass(cls): super(SyndicationFeedTest, cls).setUpClass() # This cleanup is necessary because contrib.sites cache # makes tests interfere with each other, see #11505 Site.objects.clear_cache() def test_rss2_feed(self): """ Loading Loading
tests/model_package/tests.py +8 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,14 @@ class Advertisement(models.Model): class ModelPackageTests(TestCase): @classmethod def setUpClass(cls): super(ModelPackageTests, cls).setUpClass() # This cleanup is necessary because contrib.sites cache # makes tests interfere with each other, see #11505 Site.objects.clear_cache() def test_m2m_tables_in_subpackage_models(self): """ Regression for #12168: models split into subpackages still get M2M Loading
tests/syndication_tests/tests.py +7 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ try: except ImportError: pytz = None from django.contrib.sites.models import Site from django.contrib.syndication import views from django.core.exceptions import ImproperlyConfigured from django.test import TestCase, override_settings Loading Loading @@ -55,6 +56,12 @@ class SyndicationFeedTest(FeedTestCase): """ Tests for the high-level syndication feed framework. """ @classmethod def setUpClass(cls): super(SyndicationFeedTest, cls).setUpClass() # This cleanup is necessary because contrib.sites cache # makes tests interfere with each other, see #11505 Site.objects.clear_cache() def test_rss2_feed(self): """ Loading