feat: add submitted collection, /similar and /submitted endpoints (Stage 4)
Made-with: Cursor
This commit is contained in:
16
tests/conftest.py
Normal file
16
tests/conftest.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
Pytest fixtures для RAG сервиса.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def allow_no_auth():
|
||||
"""Разрешает запросы без API ключа в тестах."""
|
||||
os.environ["RAG_ALLOW_NO_AUTH"] = "true"
|
||||
yield
|
||||
if "RAG_ALLOW_NO_AUTH" in os.environ:
|
||||
del os.environ["RAG_ALLOW_NO_AUTH"]
|
||||
Reference in New Issue
Block a user