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
|
Signed-off-by: Rong Fu <rong.fu.cn@windriver.com>
Last-Update: 2025-04-14
diff --git a/tests/test_checkcif.py b/tests/test_checkcif.py
index 3919ab7..5f4111a 100644
--- a/tests/test_checkcif.py
+++ b/tests/test_checkcif.py
@@ -12,6 +12,7 @@ from finalcif.cif.checkcif.checkcif import MyHTMLParser, fix_iucr_urls
data = Path('tests')
form_choices = {'filecif' : [],
+ 'from_index' : [],
'runtype' : [],
'referer' : [],
'outputtype' : ['HTML', 'PDF', 'PDFEMAIL'],
@@ -66,6 +67,9 @@ class TestCheckCifInterface(TestCase):
def test_form_choices_filecif(self):
self.assertEqual([], self.form_items['filecif'])
+ def test_form_choices_from_index(self):
+ self.assertEqual([], self.form_items['from_index'])
+
def test_form_choices_runtype(self):
self.assertEqual([], self.form_items['runtype'])
@@ -91,7 +95,7 @@ class TestCheckCifInterface(TestCase):
fields = self.form.fields.keys()
fields.sort()
self.assertEqual(
- ['Qemailaddress', 'UPLOAD', 'filecif', 'outputtype', 'referer', 'runtype', 'validtype', 'valout'],
+ ['Qemailaddress', 'UPLOAD', 'filecif', 'from_index', 'outputtype', 'referer', 'runtype', 'validtype', 'valout'],
fields
)
|