forked from admin/miem_workers
feat: explain council selection rules on the first XLSX sheet
This commit is contained in:
1 parent
2baa2e1aa1
commit
962e936ad1
7 files changed
+79
-11
No files matched your search
+1
-1
@@ -18,7 +18,7 @@ def test_health_returns_versions():
|
||||
response = TestClient(app).get("/api/health")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.json()["backend_version"] == "1.4.0"
|
||||
assert response.json()["backend_version"] == "1.4.1"
|
||||
|
||||
|
||||
def test_api_employees_and_stats_require_admin_session():
|
||||
|
||||
+12
-1
@@ -230,7 +230,7 @@ def test_public_page_data_minimization_and_safe_links(db_session, export):
|
||||
assert "javascript:" not in fragment.text and "private@example.org" not in fragment.text
|
||||
assert "javascript:" not in response.text and "private@example.org" not in response.text
|
||||
assert "/admin/employees/" not in response.text and "/admin/logout" not in response.text
|
||||
assert "Backend 1.4.0 · Frontend 1.4.0" in response.text
|
||||
assert "Backend 1.4.1 · Frontend 1.4.1" in response.text
|
||||
assert "Вход в систему" in response.text
|
||||
assert client.get("/admin/directory", follow_redirects=False).status_code in (302, 303, 401, 403)
|
||||
assert "Сотрудники не найдены" in client.get("/admin/council?q=missing").text
|
||||
@@ -362,6 +362,17 @@ def test_xlsx_selection_contains_full_data_and_preserves_initial_filters(db_sess
|
||||
assert options.cell(row, 2).value in book.defined_names
|
||||
assert '_xlfn.AGGREGATE' in dashboard['S10'].value
|
||||
assert '$C$3' in dashboard['F4'].value and 'IFERROR' in dashboard['F4'].value
|
||||
memo_address = dashboard['A7'].hyperlink.location.split('!', 1)[1]
|
||||
assert dashboard[memo_address].value == 'Памятка: как пользоваться подбором'
|
||||
assert dashboard[memo_address].row > 11
|
||||
memo_text = ' '.join(str(dashboard.cell(row, 1).value or '').replace('\n', ' ')
|
||||
for row in range(dashboard[memo_address].row, dashboard.max_row + 1))
|
||||
for explanation in ('Для кандидата/PhD', 'Подтверждено', '9 подтверждённых',
|
||||
'11 по физико-математической', '20', 'Не подтверждены', 'все работы сотрудника',
|
||||
'Уволенные', 'автоматический расчёт', 'не отправляются на сайт'):
|
||||
assert explanation in memo_text
|
||||
assert any(cell.hyperlink and cell.hyperlink.location == "'Подбор диссовета'!A1"
|
||||
for row in dashboard for cell in row)
|
||||
assert book.calculation.calcMode == 'auto' and book.calculation.forceFullCalc
|
||||
with ZipFile(BytesIO(response.content)) as archive:
|
||||
assert not any('vbaProject' in name or 'externalLinks' in name for name in archive.namelist())
|
||||
|
||||
Reference in new issue
Block a user