summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-12-15 18:37:26 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:22 +0100
commitc909dc8902c4fe51394982146c133eaa85c277a0 (patch)
tree803e5d2cfbf1ba8e4b4dc818027c83d8ce81516b /ishtar_common/tests.py
parent20a9a040b572911462817806ec38d19e1a6b7e13 (diff)
downloadIshtar-c909dc8902c4fe51394982146c133eaa85c277a0.tar.bz2
Ishtar-c909dc8902c4fe51394982146c133eaa85c277a0.zip
Fix null -> "" errors - fix tests
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index 05799a0aa..60e087794 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -1825,10 +1825,14 @@ class ShortMenuTest(TestCase):
user = self.other_user
from archaeological_operations.models import Operation, OperationType
ope_type, created = OperationType.objects.get_or_create(label="test")
+ idx = 1
+ while Operation.objects.filter(code_patriarche=str(idx)).count():
+ idx += 1
return Operation.objects.create(
operation_type=ope_type,
history_modifier=user,
- year=2042, operation_code=54
+ year=2042, operation_code=54,
+ code_patriarche=str(idx)
)
def test_not_connected(self):