Files
chore/backend/tests/conftest.py
Ryan Kegel 04f50c32ae
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 11s
feat: Refactor path handling for data directories and enhance test setup with user-specific image management
2026-02-06 17:02:45 -05:00

11 lines
322 B
Python

import os
os.environ['DB_ENV'] = 'test'
import sys
import pytest
# Ensure backend root is in sys.path for imports like 'config.paths'
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
@pytest.fixture(scope="session", autouse=True)
def set_test_db_env():
os.environ['DB_ENV'] = 'test'