Changelog
=========
+- **1.19.6** Fixes randomly failing unit test
- **1.19.5** Adds "as-is" option for case
- **1.19.4** Makes randomised delimiters behavior consistent with fixed delimeters
- **1.19.3** Restore a randomly sampled version of eff_large_de wordlist
- **1.16.5** Adds title case option for `--case`
- **1.16.4** Improve unit tests, fixes broken test on python 2
- **1.16.3** Correct links for German worldist, updated docs to include the list
-- **1.16.2** Fix exception on UTF8 open with python 2.x
License
=======
setup(
name='xkcdpass',
- version='1.19.5',
+ version='1.19.6',
author='Steven Tobin',
author_email='steventtobin@gmail.com',
url='https://github.com/redacted/XKCD-password-generator',
def test_random_delimiter(self):
wordlist = xkcd_password.generate_wordlist(WORDFILE, min_length=3, max_length=3)
result = xkcd_password.generate_xkcdpassword(wordlist, numwords=3, random_delimiters=True)
-
- self.assertEqual(11, len(result))
+ # result can be length 9, 10, or 11 depending on which random delimiters are chose
+ self.assertTrue(len(result) in [9, 10, 11])
def test_set_case(self):
words = "this is only a GREAT Test".lower().split()
from io import open
__LICENSE__ = """
-Copyright (c) 2011 - 2018, Steven Tobin and Contributors.
+Copyright (c) 2011 - 2023, Steven Tobin and Contributors.
All rights reserved.
Redistribution and use in source and binary forms, with or without