"""V8.33 five-theme, preview parity and business-safe migration checks.""" import json from pathlib import Path from test_factory_v2 import factory,site from app import core, theme_store, theme_pro ROOT=Path(__file__).resolve().parents[1] def test_registry_includes_five_themes_and_old_manifests(): assert set(core.THEMES)==set(theme_pro.THEMES)==set(theme_store.BUILTIN) assert len(core.THEMES)==5 assert 'trade-pro' in core.THEMES for name in ('automotive','industrial','corporate','minimal'): assert theme_store.resolve(name,'1.1.0').is_dir() assert theme_store.compatibility('trade-pro')['valid'] def test_theme_gallery_and_editor_offer_trade_pro(factory): gallery=factory.get('/theme-gallery') assert gallery.status_code==200 assert '