File: 0003-Update-TestCheckCifInterface.patch

package info (click to toggle)
finalcif 154%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,284 kB
  • sloc: fortran: 148,126; python: 50,133; cpp: 67; sh: 51; makefile: 22
file content (36 lines) | stat: -rw-r--r-- 1,476 bytes parent folder | download
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
         )