19 lines
756 B
Python
19 lines
756 B
Python
|
|
# This file is auto-generated by alef — DO NOT EDIT.
|
||
|
|
# alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||
|
|
# To regenerate: alef generate
|
||
|
|
# To verify freshness: alef verify --exit-code
|
||
|
|
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
||
|
|
"""Pytest configuration for e2e tests."""
|
||
|
|
import os
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
# Ensure the package is importable.
|
||
|
|
# The kreuzberg package is expected to be installed in the current environment.
|
||
|
|
|
||
|
|
# Change to the configured test-documents directory so that fixture file
|
||
|
|
# paths like "pdf/fake_memo.pdf" resolve correctly when running pytest
|
||
|
|
# from e2e/python/.
|
||
|
|
_TEST_DOCUMENTS = Path(__file__).parent.parent.parent / "test_documents"
|
||
|
|
if _TEST_DOCUMENTS.is_dir():
|
||
|
|
os.chdir(_TEST_DOCUMENTS)
|