mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
feat: locks/replace/compare/permalinks; perf: virtualization, LQIP, caching, diagnostics; add tests, docs, and issue/PR templates (flags OFF)
This commit is contained in:
parent
f8c6b5c07e
commit
721e1884af
41 changed files with 2960 additions and 143 deletions
12
code/tests/test_compare_metadata.py
Normal file
12
code/tests/test_compare_metadata.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import importlib
|
||||
from starlette.testclient import TestClient
|
||||
|
||||
|
||||
def test_compare_options_include_mtime_attribute():
|
||||
app_module = importlib.import_module('code.web.app')
|
||||
client = TestClient(app_module.app)
|
||||
r = client.get('/decks/compare')
|
||||
assert r.status_code == 200
|
||||
body = r.text
|
||||
# Ensure at least one option contains data-mtime attribute (present even with empty list structure)
|
||||
assert 'data-mtime' in body
|
||||
Loading…
Add table
Add a link
Reference in a new issue