Skip to content
Snippets Groups Projects
Commit 78bc49f3 authored by ulif's avatar ulif
Browse files

Make sure we follow filename pattern.

Also in tests.
parent bdc43d0b
No related branches found
No related tags found
No related merge requests found
...@@ -85,9 +85,9 @@ class TestWordlistModule(object): ...@@ -85,9 +85,9 @@ class TestWordlistModule(object):
def test_get_wordlist_names(self, wordlists_dir): def test_get_wordlist_names(self, wordlists_dir):
# we can get wordlist names also if directory is empty. # we can get wordlist names also if directory is empty.
wlist_path = wordlists_dir.join('mywordlist_en_8k.txt') wlist_path = wordlists_dir.join('wordlist_my_en_8k.txt')
wlist_path.write("some\nirrelevant\nwords") wlist_path.write("some\nirrelevant\nwords")
assert get_wordlist_names() == ['en_8k'] assert get_wordlist_names() == ['my_en_8k']
def test_get_wordlist_names_files_only(self, wordlists_dir): def test_get_wordlist_names_files_only(self, wordlists_dir):
# non-files are ignored when looking for wordlist names # non-files are ignored when looking for wordlist names
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment