from pathlib import Path ROOT = Path(__file__).resolve().parents[1] def test_frontend_assets_are_externalized(): html=(ROOT/'app.html').read_text(encoding='utf-8') assert '/static/css/app.css?v=__APP_VERSION__' in html assert '/static/js/app.js?v=__APP_VERSION__' in html assert (ROOT/'static/css/app.css').stat().st_size > 10000 assert (ROOT/'static/js/app.js').stat().st_size > 50000 assert html.count('