fix: serve dashboard independently of process cwd (#46)
This commit is contained in:
1 parent
94cdd0f407
commit
f0dc260c9b
2 files changed
+16
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in new issue
Block a user