feat(web): доска на данных хаба — вход по токену, GET /board, «Перечитать» (#17)

Встроенная выгрузка от 11.10.2026 удалена; CSV и JSON — загрузка файла.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andrey Epifancev 2026-10-14 18:02:48 +04:00
parent 9bfb8be549
commit e92e7711d6
2 changed files with 133 additions and 21 deletions

File diff suppressed because one or more lines are too long

View File

@ -385,3 +385,10 @@ def test_page_served_without_token(hub):
with pytest.raises(urllib.error.HTTPError) as e:
urllib.request.urlopen(hub["base"] + "/links/x", timeout=10)
assert e.value.code == 404
def test_page_reads_hub_and_has_no_embedded_export():
html = api.PAGE.read_text(encoding="utf-8")
assert "DEFAULT_CSV" not in html and "Ключ проблемы,Тема" not in html # встроенной выгрузки нет
assert '"jira-hub-token"' in html and 'hubFetch("/board")' in html
assert "Нет в зеркале" in html