# Tests keep transient artifacts under test/ and remove them after each test.
import sys
import tempfile
from pathlib import Path
import pytest

sys.path.insert(0, str(Path(__file__).parents[1]))


@pytest.fixture
def work():
    with tempfile.TemporaryDirectory(dir=Path(__file__).parent, prefix='tmp-') as name:
        yield Path(name)
