File: remove-broken-test-cases.patch

package info (click to toggle)
xkcdpass 1.20.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,816 kB
  • sloc: python: 578; makefile: 26
file content (44 lines) | stat: -rw-r--r-- 1,608 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
37
38
39
40
41
42
43
44
Description: Remove test cases that break the test suite.
 .
 These are acknowledged broken upstream, but not yet removed.
Bug: https://github.com/redacted/XKCD-password-generator/issues/138
Author: Ben Finney <bignose@debian.org>
Last-Update: 2025-06-02

diff --git old/tests/test_xkcdpass.py new/tests/test_xkcdpass.py
--- old/tests/test_xkcdpass.py
+++ new/tests/test_xkcdpass.py
@@ -175,21 +175,7 @@ class TestEmitPasswords(unittest.TestCase):
         self.assertEqual(output.find(unwanted_separator), -1)
 
 
-# class TestEntropyInformation(unittest.TestCase):
-#     """ Test cases for function `emit_passwords`. """
-
-#     @staticmethod
-#     # def run_xkcdpass_process(*args):
-#     #     process = Popen(["xkcdpass", "-V", "-i"], stdout=PIPE, stdin=PIPE)
-#     #     return process.communicate('\n'.join(args))[0]
-
-#     @staticmethod
-#     def test_entropy_printout_valid_input(self):
-#         values = self.run_xkcdpass_process('4', 'y')
-#         self.assertIn('A 4 word password from this list will have roughly 51', values)
-
-
 if __name__ == '__main__':
-    test_cases = [XkcdPasswordTests, TestEmitPasswords, ]  # TestEntropyInformation]
+    test_cases = [XkcdPasswordTests, TestEmitPasswords]
     suites = [unittest.TestLoader().loadTestsFromTestCase(test_case) for test_case in test_cases]
     unittest.TextTestRunner(verbosity=2).run(unittest.TestSuite(suites))


Local variables:
coding: utf-8
mode: diff
time-stamp-format: "%:y-%02m-%02d"
time-stamp-start: "^Last-Update:[ 	]+"
time-stamp-end: "$"
time-stamp-line-limit: 20
End:
vim: fileencoding=utf-8 filetype=diff :