1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
From: Roland Mas <lolando@debian.org>
Date: Wed, 27 Aug 2025 14:48:11 +0200
Subject: Update TestCheckCifInterface
---
tests/test_checkcif.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/test_checkcif.py b/tests/test_checkcif.py
index 13f8019..11716fd 100644
--- a/tests/test_checkcif.py
+++ b/tests/test_checkcif.py
@@ -20,6 +20,7 @@ form_choices = {'filecif' : [],
'Qemailaddress': [],
'validtype' : ['checkcif_with_hkl', 'iucr_checkcif_with_hkl', 'checkcif_only'],
'valout' : ['vrfa', 'vrfab', 'vrfabc', 'vrfno'],
+ 'duplic' : ['duplicno', 'duplicyes'],
'UPLOAD' : []
}
@@ -92,11 +93,14 @@ class TestCheckCifInterface(TestCase):
def test_form_choices_valout(self):
self.assertEqual(['vrfa', 'vrfab', 'vrfabc', 'vrfno'], self.form_items['valout'])
+ def test_form_choices_duplic(self):
+ self.assertEqual(['duplicno', 'duplicyes'], self.form_items['duplic'])
+
def test_form_field_keys(self):
fields = self.form.fields.keys()
fields.sort()
self.assertEqual(
- ['Qemailaddress', 'UPLOAD', 'filecif', 'from_index', 'outputtype', 'referer', 'runtype', 'validtype', 'valout'],
+ ['Qemailaddress', 'UPLOAD', 'duplic', 'filecif', 'from_index', 'outputtype', 'referer', 'runtype', 'validtype', 'valout'],
fields
)
|