18 lines
670 B
Python
18 lines
670 B
Python
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 "<pre class=\"code\"" 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 "Snapshots" in template
|