Files
MervinPraison 984ddf74d2 feat: add jobs proxy configuration for external job servers
- 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.
2026-06-17 10:20:55 +01:00

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)