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_operations/tests.py | |
parent | d1c7bd72991a7a6152d5a3a46e9098fea6b285db (diff) | |
download | Ishtar-6426188767e69c8f21db4cef206e14d425d26706.tar.bz2 Ishtar-6426188767e69c8f21db4cef206e14d425d26706.zip |
Tests: force locale definition
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
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', |