""" Global test fixtures and Mocks """ from pathlib import Path import pytest class MockWorkbookSheet: def __init__(self, data): self._data = data @property def rows(self): return iter(self._data) @pytest.fixture def example_file(request): root_dir = Path(request.config.rootdir) data_dir = root_dir / "test data" return data_dir / "Verwendungsnachweis_und_Kassenstand_SAP_Zahlen.xlsx"