diff options
author | Cefin <kevon@tuta.io> | 2022-02-10 10:55:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
commit | 3359aa95697cf7203327f242cf6d64fd9c269b56 (patch) | |
tree | b9b1cf41e382057359ae0d0ef198af5bfc76801a /archaeological_operations/tests.py | |
parent | f8ec5fa52faf9df13198d94513a03645d4782ca9 (diff) | |
download | Ishtar-3359aa95697cf7203327f242cf6d64fd9c269b56.tar.bz2 Ishtar-3359aa95697cf7203327f242cf6d64fd9c269b56.zip |
Operation - Parcels - Modify: add tests for selection form #5227
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 8f07844c5..7091373da 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -1690,6 +1690,8 @@ class ParcelTest(ImportTest, TestCase): f"form-{idx}-DELETE": '', }) data.update({ + "_town": town_2.pk, + "_parcel_selection": "2013:XD:10", "form-0-pk": parcel_1.pk, "form-0-year": 2021, "form-0-section": "SCT1", @@ -1717,9 +1719,12 @@ class ParcelTest(ImportTest, TestCase): self.assertContains(response, "002") self.assertContains(response, "003") self.assertContains(response, "XXX") + self.assertContains(response, 2013) + self.assertContains(response, "XD") + self.assertContains(response, "10") parcels = models.Parcel.objects.all() - self.assertEqual(parcels.count(), 3) + self.assertEqual(parcels.count(), 4) data.update({"form-0-DELETE": True}) |