"""pytest configuration for deb-bootc-image-builder tests.""" import pytest import os import tempfile import shutil @pytest.fixture(scope="session") def test_data_dir(): """Provide test data directory.""" return os.path.join(os.path.dirname(__file__), "data") @pytest.fixture(scope="session") def temp_dir(): """Provide temporary directory for tests.""" temp_dir = tempfile.mkdtemp() yield temp_dir shutil.rmtree(temp_dir) @pytest.fixture(scope="function") def work_dir(): """Provide working directory for individual tests.""" work_dir = tempfile.mkdtemp() yield work_dir shutil.rmtree(work_dir)