summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-06-21 16:44:54 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-06-21 17:15:54 +0200
commit017da0cd9ae38b76377f959f05f5913bb8b296f4 (patch)
treebb323aa958260988ec53c89f366dd311795e6536 /ishtar_common/tests.py
parent0a6b8708431eb45fcd426227fa7b54505d6eb668 (diff)
downloadIshtar-017da0cd9ae38b76377f959f05f5913bb8b296f4.tar.bz2
Ishtar-017da0cd9ae38b76377f959f05f5913bb8b296f4.zip
Tests: fix dependencies and string evaluation
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index 85d658160..e535eda4b 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -797,6 +797,7 @@ class SerializationTest(GenericSerializationTest, TestCase):
AlterationCauseType,
TreatmentEmergencyType,
CommunicabilityType,
+ FunctionalArea
)
from archaeological_operations.models import CulturalAttributionType
@@ -809,6 +810,7 @@ class SerializationTest(GenericSerializationTest, TestCase):
TreatmentEmergencyType,
CommunicabilityType,
CulturalAttributionType,
+ FunctionalArea,
):
model.objects.create(txt_idx="test", label="Test")
@@ -2054,7 +2056,7 @@ class ShortMenuTest(TestCase):
ope.save()
response = c.get(reverse("shortcut-menu"))
self.assertEqual(response.status_code, 200)
- self.assertFalse(str(ope.cached_label) in response.content.decode())
+ self.assertIn(ope.cached_label, response.content.decode())
# test current is not owned
ope.end_date = None