mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 16:10:12 +01:00
test: convert tests to pytest assertions; add server-availability skips; clean up warnings and minor syntax/indent issues
This commit is contained in:
parent
f07daaeb4a
commit
947adacfe2
21 changed files with 374 additions and 311 deletions
|
|
@ -96,7 +96,10 @@ Counterspell"""
|
|||
|
||||
# Get session cookie and export permalink
|
||||
session_cookie = r2.cookies.get('sid')
|
||||
r3 = client.get('/build/permalink', cookies={'sid': session_cookie})
|
||||
# Set cookie on client to avoid per-request cookies deprecation
|
||||
if session_cookie:
|
||||
client.cookies.set('sid', session_cookie)
|
||||
r3 = client.get('/build/permalink')
|
||||
assert r3.status_code == 200
|
||||
|
||||
export_data = r3.json()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue