"""Что человек видит на странице: цена под ответом и остаток в верхней панели. Распоряжение Хозяина 09.09.2026, пункты 3 и 4. Проверки статические, по исходнику страницы; вид смотрится глазами в браузере — зелёная проверка этого не заменяет. Red-green: написано ДО правки static/chat.html. """ import os import re import sys import pytest ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) if ROOT not in sys.path: sys.path.insert(0, ROOT) CHAT = os.path.join(ROOT, "static", "chat.html") @pytest.fixture(scope="module") def html(): return open(CHAT, encoding="utf-8").read() @pytest.fixture(scope="module") def header(html): start = html.index('