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

Add test fixture delivering WordList instance.

parent 86a3af8d
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,16 @@ def wordlists_dir(request, monkeypatch, tmpdir):
return tmpdir
@pytest.fixture(scope="function")
def wordlist(request, tmpdir):
"""A fixture that delivers a simple WordList instance.
"""
path = tmpdir.join("mylist.txt")
path.write("foo\nbar\n")
w_list = WordList(str(path))
return w_list
class TestWordlistModule(object):
def test_re_wordlist_name(self):
......
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