import os

from django.conf import settings
from django.urls import reverse


def test_core_settings_expose_documented_paths():
    assert settings.SCENARIO_CONFIG_DIR.name == "configs"
    assert settings.CHROMA_PATH.name == "chroma"
    assert settings.MEDIA_ROOT.name == "uploads"
    assert settings.EMBEDDING_MODEL == os.environ.get(
        "EMBEDDING_MODEL",
        "text-embedding-3-small",
    )
    assert settings.EMBEDDING_BASE_URL == settings.LLM_BASE_URL
    assert settings.EMBEDDING_API_KEY == settings.LLM_API_KEY


def test_home_url_is_registered(client):
    response = client.get(reverse("scenarios:index"))
    assert response.status_code == 200
