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 :
|