from pathlib import Path def test_employee_detail_template_is_human_readable(): template = Path("app/templates/employee_detail.html").read_text(encoding="utf-8") assert "Current data" not in template assert "
Tabs<" not in template
    assert "contacts.items" not in template
    assert "contacts.contact_items" in template
    assert "section.items" not in template
    assert "section.list_items" in template
    assert "Основная информация" in template
    assert "Контакты" in template
    assert "В новостях" in template
    assert "employee_view.news_links" in template
    assert "news.summary" in template
    assert "Разделы профиля" in template
    assert "graduation_theses" in template
    assert "Год защиты" in template
    assert "Parser version" not in template
    assert "First seen" not in template
    assert "Last seen" not in template
    assert "Dismissed at" not in template
    assert "Profile type" not in template
    assert "Profile ID" not in template
    assert "Впервые найден" in template
    assert "Последний раз найден" in template
    assert "Дата увольнения" in template
    assert "Тип профиля" in template
    assert "ID профиля" in template
    assert "Обновить данные" in template
    assert 'action="/admin/employees/{{ employee.id }}/refresh"' in template
    assert "Снапшоты" in template