From 2ab35bdab047a5bda62315e0a71dff7f93b0cec1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 19 Feb 2018 12:46:58 +0100 Subject: Fix document test --- .../templates/ishtar/administrativeact_document.html | 2 -- archaeological_operations/tests.py | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/archaeological_files/templates/ishtar/administrativeact_document.html b/archaeological_files/templates/ishtar/administrativeact_document.html index 5d71519f0..104e5063e 100644 --- a/archaeological_files/templates/ishtar/administrativeact_document.html +++ b/archaeological_files/templates/ishtar/administrativeact_document.html @@ -9,9 +9,7 @@

{% trans "Document generation" %}

{% csrf_token %}
- {{ search_form.as_p }} -

{% trans "Choose the type of document" %}

{{ template_form }} diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 166e535ca..947be204e 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -1489,7 +1489,10 @@ class RegisterTest(TestCase, OperationInitTest): self.assertIsNone(z.testzip()) c = z.open('content.xml') content = c.read() - self.assertIn('{{ adminact_operator_id }}', content) + self.assertIn( + '{{ adminact_associated_file_in_charge_parcel_owner }}', + content + ) finally: c.close() z.close() -- cgit v1.2.3