1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 12:42:41 +00:00
Files
blag/tests/test_blag.py
2021-02-13 13:38:18 +01:00

19 lines
337 B
Python

from tempfile import TemporaryDirectory
import os
import pytest
from blag import blag
@pytest.fixture
def outdir():
with TemporaryDirectory() as dir:
yield dir
def test_generate_feed(outdir):
articles = []
blag.generate_feed(articles, outdir, ' ', ' ', ' ', ' ')
assert os.path.exists(f'{outdir}/atom.xml')