summaryrefslogtreecommitdiff
path: root/tests/sites_framework
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sites_framework')
-rw-r--r--tests/sites_framework/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sites_framework/tests.py b/tests/sites_framework/tests.py
index de37bb5a00..e44b3a6d84 100644
--- a/tests/sites_framework/tests.py
+++ b/tests/sites_framework/tests.py
@@ -10,7 +10,8 @@ from .models import CustomArticle, ExclusiveArticle, SyndicatedArticle
class SitesFrameworkTestCase(TestCase):
- def setUp(self):
+ @classmethod
+ def setUpTestData(cls):
Site.objects.get_or_create(id=settings.SITE_ID, domain="example.com", name="example.com")
Site.objects.create(id=settings.SITE_ID + 1, domain="example2.com", name="example2.com")