Skip to content

Commit

Permalink
fixes failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Tobin committed Nov 20, 2023
1 parent 92840b9 commit 8396611
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ or setting the appropriate environment variable::

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
Expand All @@ -211,7 +212,6 @@ Changelog
- **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
=======
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='xkcdpass',
version='1.19.5',
version='1.19.6',
author='Steven Tobin',
author_email='[email protected]',
url='https://github.com/redacted/XKCD-password-generator',
Expand Down
4 changes: 2 additions & 2 deletions tests/test_xkcdpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def test_delim(self):
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()
Expand Down
2 changes: 1 addition & 1 deletion xkcdpass/xkcd_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
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
Expand Down

0 comments on commit 8396611

Please sign in to comment.