Files
kontor/python/cli/tests/conftest.py
T
2025-01-13 22:54:25 +01:00

17 lines
299 B
Python

"""
PyTest Fixtures.
"""
import pytest
from cement import fs
@pytest.fixture(scope="function")
def tmp(request):
"""
Create a `tmp` object that geneates a unique temporary directory, and file
for each test function that requires it.
"""
t = fs.Tmp()
yield t
t.remove()