diff --git a/tests/test_wordlist.py b/tests/test_wordlist.py index 36b094cefcb353e953bd3a1165e613d00077a08a..ce74f155b70a042978491231736bf22e22de4ec4 100644 --- a/tests/test_wordlist.py +++ b/tests/test_wordlist.py @@ -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):