diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-01 10:47:29 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-01 10:47:29 +0200 |
commit | 392a7b46a77c109f414513ebac386f1a133ab1c2 (patch) | |
tree | afee3dce21b0a73a67892aac2c8050fdba33c09d /archaeological_operations | |
parent | 47f660994b680dc4388a9915dce99d2a4e633b01 (diff) | |
download | Ishtar-392a7b46a77c109f414513ebac386f1a133ab1c2.tar.bz2 Ishtar-392a7b46a77c109f414513ebac386f1a133ab1c2.zip |
Tests: add ODT export test on operations
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 1c63de93b..e0e5d5313 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -932,6 +932,13 @@ class OperationTest(TestCase, OperationInitTest): self.assertEqual(response.status_code, 200) self.assertIn('class="sheet"', response.content) + response = c.get(reverse('show-operation', kwargs={'pk': operation.pk, + 'type': 'odt'})) + self.assertEqual(response.status_code, 200) + f = StringIO.StringIO(response.content) + z = zipfile.ZipFile(f) + self.assertIsNone(z.testzip()) + class OperationSearchTest(TestCase, OperationInitTest): fixtures = FILE_FIXTURES |