diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-03-08 15:00:06 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-17 13:21:27 +0200 |
commit | 6426188767e69c8f21db4cef206e14d425d26706 (patch) | |
tree | ce0b6b0daa123676825322bb63b3d594ed0eb04e /archaeological_context_records/tests.py | |
parent | d1c7bd72991a7a6152d5a3a46e9098fea6b285db (diff) | |
download | Ishtar-6426188767e69c8f21db4cef206e14d425d26706.tar.bz2 Ishtar-6426188767e69c8f21db4cef206e14d425d26706.zip |
Tests: force locale definition
Diffstat (limited to 'archaeological_context_records/tests.py')
-rw-r--r-- | archaeological_context_records/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index fe9fab7fb..adfb56b01 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -20,6 +20,7 @@ import csv import json from io import StringIO +import locale from django.conf import settings from django.contrib.auth.models import Permission @@ -84,6 +85,7 @@ class ImportContextRecordTest(ImportTest, TestCase): unit__txt_idx='negative').count(), 1) def test_model_limitation(self): + locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') old_nb = models.ContextRecord.objects.count() mcc, form = self.init_context_record_import() mcc.created_models.clear() |