diff --git a/tests/test_blag.py b/tests/test_blag.py index d2ef954..ba5ef78 100644 --- a/tests/test_blag.py +++ b/tests/test_blag.py @@ -7,19 +7,15 @@ import pytest from blag import blag -@pytest.fixture -def outdir(): - with TemporaryDirectory() as dir: - yield dir - - -def test_generate_feed(outdir): +def test_generate_feed(tempdir): + outdir = f'{tempdir}/build' articles = [] blag.generate_feed(articles, outdir, ' ', ' ', ' ', ' ') assert os.path.exists(f'{outdir}/atom.xml') -def test_feed(outdir): +def test_feed(tempdir): + outdir = f'{tempdir}/build' articles = [ [ 'dest1.html', @@ -66,7 +62,8 @@ def test_feed(outdir): assert '