Skip to content

Commit

Permalink
add test cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vavalomi committed Jan 19, 2022
1 parent 77432f6 commit 4a4131f
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/headquarters/test_headquarters.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def test_headquarters_graphql_error(session):
next(MapsApi(session, workspace="dddd").get_list())


@my_vcr.use_cassette()
def test_headquarters_user_session_login(session, params):
with raises(UnauthorizedError):
QuestionnairesApi(session).download_web_links(params['TemplateId'], params['TemplateVersion'])
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
interactions:
- request:
body: UserName=apiuser&Password=Validpassword1
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '40'
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- python-requests/2.25.1
method: POST
uri: http://localhost:9707/Account/LogOn
response:
body:
string: !!binary |
H4sIAAAAAAAAA81ae2/cNhL/v0C+A6sDbm1cJO37Ye/unR27eTSxg9hOWxSFQYnUil5JlEVqH+7l
u9+MHvvy2l63Lq4GNhLJ38xwhjPDIZX+9yfnby5/+XxKfB0Gw1ff9RdPThk8Cfz1Q64pcX2aKK4H
Rqo9s2usjflaxya/TcVkYPxsXh2Zb2QYUy2cgBvElZHmERC+Px1wNuLrpBEN+cCYCD6NZaJX0FPB
tD9gfCJcbmaN10REQgsamMqlAR/UrOqCVyCiMUl4MKgI4FAheh5zeA/piNtxNKoQJe64GlRqvfoM
fhXiJ9wbVGwRjmzBQKDQc9ujE6Q2/VuzwFlIOyS5kNW/FYE0jgNuapm6vpmRxwl3QX+pOFvK7VZn
8Htabo7L5b6A2Bao0dpB3Rz3YmKbzRn8nhab415MbB2MV9/ByDnuxcTWQIvaDtrmuJcS22nPOu0n
hWaoFxNZn3WedqYM9adFPi5klX0fxgI+7Nv5M+989R0kMeUmItZ5MjA0n2n7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zupGVCHBxhCG3rumglVTCM82uEDGSwcY5cc
kwn/K5Y536rUThZwUq3h6FyQOzoi8IP867oc1gjfg1G57Cp1QgE7GQQ9pNe+ndPuqEHhUnk4XF9/
gXjhSn/lifCEmyW0Sznmi1ziC8awVWSTN97Jh+6ZVpFzdXPzU+uDf3T9/jL+JCbe27njXk4an67C
s+rFO/7RvZ6dnjfiz+fvPlRHbbMTn/eO3U8nHvvgXp+ok6aiH51Z77R9/M75seFP787Nt3RerXfD
4F1rxttO+8sv03PtT76Gjdub4Ofbk+5x9abX/hSqU7emRqc/nF31jtpi3Bv7+vzjz9MqxmrfRsNv
3eKfX9P9sQopwYrsxUukpymzMgl2YxMP6s85NDDu0TTQBd0fLZt3MeO99nqR+lhNKsr7YyiDabw1
dy5OMPaJnEb5nURBDXnN3IFDxiXLISUHskJFgKpIMdvU3zyPPKb8svovav7yMgpKXAkCl1lEZmXn
864oVmCYg83MIzf1/acr4/khqVfr9XtnP/wCAMkzYA4c4rK9ypLJyBjijvsT9pNjGCBvcQQVf02O
wPW+oBhFvnCoNiawAa+zVZt8kaXNI5s6MtV2wEcUivyP+ECW1m5e87B+2TpmG+fKJ4Th1i8IWxc1
94P/bh+772nDt1yT9yvOchTHW3zigdjJ5loc6/BaFW0eMUwiMjkg//C8LmyjZ3xKCkXI0YSKAKP+
gOQq9chCp3q10don2yf+jIDcbtrtXpz76fKrx1Of0PCri+KBB+UDnBni4hsLViTa58d4bbe1KFHH
80s6wup3r4KXe5X9X6u/ZV9fCjIrs6HFhILqDpkY2cEHP7R9IzxQPBcEIrNb5eyyekBwJos2Qtc+
5DyuTHbr/MQl6/DeVfVuvLZc+j6f1f1r2xUeNloxv4XI/wfH/wC/AHFN2yEAAA==
headers:
Cache-Control:
- no-cache, no-store
Content-Encoding:
- gzip
Content-Language:
- en-US
Content-Security-Policy:
- 'font-src ''self'' data:; img-src ''self'' data: blob:; default-src * data:
''self'' ''unsafe-inline'' ''unsafe-eval'' blob:'
Content-Type:
- text/html; charset=utf-8
Date:
- Wed, 19 Jan 2022 20:53:04 GMT
Pragma:
- no-cache
Server:
- Kestrel
Set-Cookie:
- .AspNetCore.Antiforgery.9TtSrW0hzOs=CfDJ8NtsnbUjjW5JhA_ITpMivfFNHW06nB2p4hqgAj1pXiMMArTNiu2BIlEXekE_LwF-UYE0qfiehMv-ohF3f4czJqweJPuTknLD2CIi0ZbfVj-uiag2HN_XDKJNUwxLnFCHJnPpUEawFVblS6l_0NQ-dG8;
path=/; samesite=strict; httponly
Transfer-Encoding:
- chunked
Vary:
- Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- '1'
status:
code: 200
message: OK
version: 1

0 comments on commit 4a4131f

Please sign in to comment.