mirror of
https://github.com/venthur/blag.git
synced 2025-11-25 12:42:41 +00:00
19 lines
337 B
Python
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')
|