summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_unaccent.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/postgres_tests/test_unaccent.py')
-rw-r--r--tests/postgres_tests/test_unaccent.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/postgres_tests/test_unaccent.py b/tests/postgres_tests/test_unaccent.py
index 477bb3d653..6d52f1d7dd 100644
--- a/tests/postgres_tests/test_unaccent.py
+++ b/tests/postgres_tests/test_unaccent.py
@@ -10,11 +10,12 @@ class UnaccentTest(PostgreSQLTestCase):
Model = CharFieldModel
- def setUp(self):
- self.Model.objects.bulk_create([
- self.Model(field="àéÖ"),
- self.Model(field="aeO"),
- self.Model(field="aeo"),
+ @classmethod
+ def setUpTestData(cls):
+ cls.Model.objects.bulk_create([
+ cls.Model(field="àéÖ"),
+ cls.Model(field="aeO"),
+ cls.Model(field="aeo"),
])
def test_unaccent(self):