13 lines
267 B
Python
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
|