mirror of
https://github.com/MervinPraison/PraisonAIUI.git
synced 2026-11-07 05:56:17 -10:00
- Introduced `set_jobs_proxy` function to allow forwarding of `/api/jobs/*` requests to an external jobs server. - Updated documentation to reflect the new proxy setup and its usage. - Enhanced server state reset to accommodate the new jobs API configuration. - Added tests to ensure proper functionality of the jobs API configuration and proxy settings. This change facilitates better integration when the dashboard and jobs server operate on different ports.
14 lines
422 B
Python
14 lines
422 B
Python
"""Shared pytest fixtures for PraisonAIUI tests."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def _clear_auth_env(monkeypatch):
|
|
"""Prevent host env auth tokens from breaking unauthenticated test clients."""
|
|
monkeypatch.delenv("AUTH_ENFORCE", raising=False)
|
|
monkeypatch.delenv("AIUI_URL_TOKEN", raising=False)
|
|
monkeypatch.delenv("GATEWAY_AUTH_TOKEN", raising=False)
|