mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 16:10:12 +01:00
maintenance: properly implemented preview popup for alternative cards, allowed re-selection of alternative cards
This commit is contained in:
parent
b7bf72efe8
commit
beea79c76a
6 changed files with 214 additions and 23 deletions
|
|
@ -66,3 +66,14 @@ def test_alternatives_filters_out_commander_in_deck_and_locked():
|
|||
assert 'alt commander' not in body
|
||||
assert 'alt in deck' not in body
|
||||
assert 'alt locked' not in body
|
||||
assert '"owned_only":"0"' in r.text
|
||||
assert 'New pool' in r.text
|
||||
|
||||
|
||||
def test_alternatives_refresh_query():
|
||||
app_module = importlib.import_module('code.web.app')
|
||||
client = TestClient(app_module.app)
|
||||
_inject_fake_ctx(client, commander='Alt Commander', locks=['alt locked'])
|
||||
r = client.get('/build/alternatives?name=Target%20Card&owned_only=0&refresh=1')
|
||||
assert r.status_code == 200
|
||||
assert 'New pool' in r.text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue