From 6426188767e69c8f21db4cef206e14d425d26706 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 8 Mar 2019 15:00:06 +0100 Subject: Tests: force locale definition --- archaeological_operations/tests.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_operations') diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 65cc0c316..54386135c 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -22,6 +22,7 @@ import datetime from subprocess import Popen, PIPE from io import StringIO, BytesIO import tempfile +import locale import zipfile from django.conf import settings @@ -1336,6 +1337,7 @@ class OperationTest(TestCase, OperationInitTest): self.assertTrue(filetype.startswith(b'application/pdf')) def test_show_odt(self): + locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') operation = self.operations[0] c = Client() response = c.get(reverse('show-operation', -- cgit v1.2.3