stackchain-dashboard/tests/test_views.py
timmy f0dc260c9b
All checks were successful
CI / lint (pull_request) Successful in 10s
CI / build-frontend (pull_request) Successful in 5s
fix: serve dashboard independently of process cwd (#46)
2026-08-05 22:17:33 +00:00

13 lines
267 B
Python

import pytest
from src.views import dashboard
@pytest.mark.anyio
async def test_dashboard_renders_outside_repository_working_directory(monkeypatch, tmp_path):
monkeypatch.chdir(tmp_path)
html = await dashboard()
assert "Stackchain Dashboard" in html