mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
feat(preview): sampling, metrics, governance, server mana data
Preview endpoint + fast caches; curated pins + role quotas + rarity/overlap tuning; catalog+preview metrics; governance enforcement flags; server mana/color identity fields; docs/tests/scripts updated.
This commit is contained in:
parent
8f47dfbb81
commit
c4a7fc48ea
40 changed files with 6092 additions and 17312 deletions
13
code/tests/test_preview_minimal_variant.py
Normal file
13
code/tests/test_preview_minimal_variant.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from fastapi.testclient import TestClient
|
||||
from code.web.app import app # type: ignore
|
||||
|
||||
|
||||
def test_minimal_variant_hides_controls_and_headers():
|
||||
client = TestClient(app)
|
||||
r = client.get('/themes/fragment/preview/aggro?suppress_curated=1&minimal=1')
|
||||
assert r.status_code == 200
|
||||
html = r.text
|
||||
assert 'Curated Only' not in html
|
||||
assert 'Commander Overlap & Diversity Rationale' not in html
|
||||
# Ensure sample cards still render
|
||||
assert 'card-sample' in html
|
||||
Loading…
Add table
Add a link
Reference in a new issue