Skip to content

Commit

Permalink
Fix WebAPI tests / regenerate webapi cassette
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterPhoenix committed Feb 22, 2025
1 parent 6438c15 commit 71167ab
Show file tree
Hide file tree
Showing 2 changed files with 648 additions and 208 deletions.
9 changes: 5 additions & 4 deletions tests/test_webapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
# setup VCR
def scrub_req(r):
r.headers.pop('Cookie', None)
r.headers.pop('date', None)
r.headers.pop('Date', None)
return r
def scrub_resp(r):
r['headers'].pop('set-cookie', None)
r['headers'].pop('date', None)
r['headers'].pop('expires', None)
r['headers'].pop('Set-Cookie', None)
r['headers'].pop('Date', None)
r['headers'].pop('Expires', None)
return r

# https://steamcommunity.com/dev/apikey
test_api_key = 'test_api_key'

test_vcr = vcr.VCR(
Expand Down
Loading

0 comments on commit 71167ab

Please sign in to comment.