All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 11s
11 lines
322 B
Python
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' |