Self-hosted monitoring for homelabs: host and container metrics and uptime checks from all your machines in one dashboard, with an optional AI agent that diagnoses incidents and suggests fixes.
Python ai-agentsaiopsdashboarddockerfastapihomelabincident-managementllmmonitoringopenaireactroot-cause-analysisself-hosteduptime-monitoring
"""Settings shared by every test."""
import os
os.environ.setdefault("DATABASE_URL", "sqlite://")
os.environ.setdefault("REDIS_URL", "redis://localhost:6379/0")
# The test client speaks plain HTTP and doesn't come through the collector gate; tests of the strict mode set it themselves.
os.environ.setdefault("SESSION_COOKIE_SECURE", "false")
os.environ.setdefault("COLLECTOR_ACCESS", "open")
import pytest
from src.backend import main
@pytest.fixture(autouse=True)
def _no_ingest_spacing(monkeypatch):
"""Tests send check-ins back to back, so the minimum spacing between check-ins is off unless a test turns it on."""
monkeypatch.setattr(main, "INGEST_MIN_SPACING_RATIO", 0)