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 | 7e137ffa0fbf2a017607963c83a21355c7b87804 (patch) | |
tree | ce0b6b0daa123676825322bb63b3d594ed0eb04e /archaeological_context_records/tests.py | |
parent | 71a3fc4f3af6ddddd570c1a8f7cb11ad3805d558 (diff) | |
download | Ishtar-7e137ffa0fbf2a017607963c83a21355c7b87804.tar.bz2 Ishtar-7e137ffa0fbf2a017607963c83a21355c7b87804.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() |