import os import sys import pytest sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) @pytest.fixture def data_dir(): return os.path.join(os.path.dirname(__file__), 'test_data')