Skip to content

Commit

Permalink
Added fixed test responses
Browse files Browse the repository at this point in the history
  • Loading branch information
s committed Oct 31, 2023
1 parent 982c353 commit 61ca03a
Show file tree
Hide file tree
Showing 73 changed files with 5,191 additions and 10,190 deletions.
24 changes: 13 additions & 11 deletions tests/cassettes/fixtures/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,36 @@ interactions:
Content-Type:
- application/json
User-Agent:
- python-requests/2.23.0
- python-requests/2.31.0
method: POST
uri: http://dev.squarelet.com/api/token/
uri: https://dev.squarelet.com/api/token/
response:
body:
string: '{"refresh":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY0NzI3MDQxMSwianRpIjoiOTcwNjUxZmUyNDQ5NDVjZGFhMWMxNTAyMGRjNTUzMzkiLCJ1c2VyX2lkIjoiYTdhMWJmMjctNGY1YS00YzA2LTk2YzItMmQ4MTJjNTFiNjFmIn0.YrxvrrGk5vWY2pvdcRw7d1gvjgVOAtNdVBILhbIkwBedXMBXDFTVXuPahaB7qQXVDbHu-34ykywEFI5wShtgRbhNFp_n0LWEpboP7GERsoJ_fjU1O_DcjVLjqpLxDK8qz683YTLOJ000Bh6Bk0OHK0cLYk9hhAmentHBl30BrKLSrK38Xw59agYYv2YbYMFsCKMcx9sMoft6_bSWdb9_LyWG9jwpIXqNEswex2uOWYL4U02mutjMbIUJJA6Ui3oD_xlIYOi1STrEETfzghxUyaP0hhLXagdiCmpI5XKFmISNL249NADhEc8JfSTs04V6dcCJirRt8wiFe94Iv-OPow","access":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjQ3MjcwNDA4LCJqdGkiOiI5M2Q5YjkyMjMyMzg0MjBlYTY5N2UyNTFkZTc3NzhhNSIsInVzZXJfaWQiOiJhN2ExYmYyNy00ZjVhLTRjMDYtOTZjM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yJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjk4NzY1NDQwLCJqdGkiOiI2ZGJkZDY5OWQ2NWU0ZjQxYmIyY2ZmZTNlYzg2OTY2ZSIsInVzZXJfaWQiOiI5YTczMmY0Yi0wNTRmLTRkNDQtYWJiMC1kODQyMTdkY2EzMzMiLCJhdWQiOlsic3F1YXJlbGV0IiwibXVja3JvY2siLCJkb2N1bWVudGNsb3VkIl0sImlzcyI6WyJzcXVhcmVsZXQiXX0.TiZgmXLgd-staJw1ct-_4DFBWg4PrBt6XUsUfTulrpgRSZfCud62988KNmfjhuc37mdXSYP0rFTOoXY6JmQ5It6Lb0vcC6dP4sEqYF99ycD66C88Q7T4VYoVCmBbof1niiKRcilbG8W_A4GyBppnlJ9YDeDjuEN-H-jhqdmUAh93rI-Q4cUj9hCMLARv9EGNhYz3chw5LqZP3zpOLntiFvvhNQ4LXkLSi9_OFnliZm6bcEAaE5ZAyyQya0hzIYpfrrom30p8ZD9o22LNlZ-3KAsMGFaKSIMNHo1KVCCe74oJP02xqxmPBXRETlq5RjGxc_Swhbagau8bOF7Uzd-z0A"}'
headers:
Allow:
- POST, OPTIONS
Connection:
- keep-alive
Content-Length:
- '1135'
- '1313'
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Mon, 14 Mar 2022 15:06:47 GMT
- Tue, 31 Oct 2023 15:12:20 GMT
Referrer-Policy:
- same-origin
Server:
- nginx/1.15.1
- nginx/1.25.2
Server-Timing:
- TimerPanel_utime;dur=298.14299999998184;desc="User CPU time", TimerPanel_stime;dur=80.22400000004382;desc="System
CPU time", TimerPanel_total;dur=378.36700000002566;desc="Total CPU time",
TimerPanel_total_time;dur=181.2272071838379;desc="Elapsed time", SQLPanel_sql_time;dur=2.23541259765625;desc="SQL
3 queries", CachePanel_total_time;dur=0;desc="Cache 0 Calls"
- TimerPanel_utime;dur=75.67999999999131;desc="User CPU time", TimerPanel_stime;dur=22.729999999995698;desc="System
CPU time", TimerPanel_total;dur=98.40999999998701;desc="Total CPU time", TimerPanel_total_time;dur=64.31365013122559;desc="Elapsed
time", SQLPanel_sql_time;dur=3.7102699279785156;desc="SQL 3 queries", CachePanel_total_time;dur=0;desc="Cache
0 Calls"
Set-Cookie:
- op_browser_state=2ee53051b4771603207ed004702156a0ad381769d3c645f2e94a3a48;
- op_browser_state=a693ff4d740f6797bfa768e6e8ac345fc63d2a9eb905e3b2a006d576;
Path=/
Vary:
- Accept, Origin, Cookie
Expand Down
488 changes: 238 additions & 250 deletions tests/cassettes/fixtures/document.yaml

Large diffs are not rendered by default.

567 changes: 199 additions & 368 deletions tests/cassettes/fixtures/project.yaml

Large diffs are not rendered by default.

22 changes: 12 additions & 10 deletions tests/cassettes/fixtures/rate_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,36 @@ interactions:
Content-Type:
- application/json
User-Agent:
- python-requests/2.23.0
- python-requests/2.31.0
method: POST
uri: http://dev.squarelet.com/api/token/
uri: https://dev.squarelet.com/api/token/
response:
body:
string: '{"refresh":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY0NzI3MDQ3MSwianRpIjoiMTA2MzhmMzcwMThlNDUwMDkyY2QwMGZkOTc4ODg0ZDYiLCJ1c2VyX2lkIjoiYTdhMWJmMjctNGY1YS00YzA2LTk2YzItMmQ4MTJjNTFiNjFmIn0.Or3Xu4lk80Kin9dkjy95mfnIV21UAN_q49TmtXgK4qFnff-2p2tChpIGf3iIt1V2tp60BwP-8-fjJ8HvsjhAeZfHhjUr9_N9lcog9wa0B0WTXjHv011MbwPgBE7nMvE4YUw8nPHzv_iA5EvkG7rwN6lG52MjTqj0bG9tKdSA_fbyxVy9dzw14lOqvhQPrt8pPwyVhX60EAoGOlCH5L7VGyVyWqVUR5sCXZIkNWNwPo_mHhoKH9N7ToQD7LVcR2gwbRWHqnOZLhuaUFrhv_C39ws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5Xb5g2IdiD207m6SG-pYUMfIyhOLUko8B0tjErxlRq4VLWTDhdodueCckmzpnc8BZwiK4q-hT1pCXd2xZ-acdPAzMUdjwI70eP36JhrWINf84hDI9EfjeHhVqKl1yXdWvsVcESLh5VAqL1EqgnLLrL92tSEiV613vNBsUJON3HJgLPOnFcK01R-WKvdCng9TIFB5HwgJXgjR1dArXcxSh_DaVgWUpLKe-neARc6ioX5g","access":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjk4NzY1NTI1LCJqdGkiOiIzZDYxOWQwOWI2YzY0ZTE2YWViNDg3ZWEwMjcyOWQ3MiIsInVzZXJfaWQiOiI5YTczMmY0Yi0wNTRmLTRkNDQtYWJiMC1kODQyMTdkY2EzMzMiLCJhdWQiOlsic3F1YXJlbGV0IiwibXVja3JvY2siLCJkb2N1bWVudGNsb3VkIl0sImlzcyI6WyJzcXVhcmVsZXQiXX0.cflNbAvXlyiV52w0jkJalzhlZZn6d-bgm6m-VtBWcVxzWpAMRd-SkjBdAbe64-2JZJ4O6PYwxuKuMCOtYbc3qWMBteW2GrtjH06TIiVCnPovanUGpC3mLWWUwMk9wl-QQVKH0_lC2TFDY2o7GbPadmvX_YCk1quNZmWd5Zz7O8j-nWwyilw7u7AWKSRZEmhuRSyPmY2hNZNeBqVgRoM-HGPOEcowTk-zY1vBNHcdl6xgSXGFosctG9U6do9FkyFOePw3R0dqwaEjXbTd0nu3fliD8RXcaFQYOFwI7eetU3bho6_RYqlZyTOkhSQKmYCf47bxap0mnUBlcxNkWRrNVw"}'
headers:
Allow:
- POST, OPTIONS
Connection:
- keep-alive
Content-Length:
- '1135'
- '1313'
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Mon, 14 Mar 2022 15:07:46 GMT
- Tue, 31 Oct 2023 15:13:45 GMT
Referrer-Policy:
- same-origin
Server:
- nginx/1.15.1
- nginx/1.25.2
Server-Timing:
- TimerPanel_utime;dur=377.21800000008443;desc="User CPU time", TimerPanel_stime;dur=92.59399999996276;desc="System
CPU time", TimerPanel_total;dur=469.8120000000472;desc="Total CPU time", TimerPanel_total_time;dur=325.81543922424316;desc="Elapsed
time", SQLPanel_sql_time;dur=2.8519630432128906;desc="SQL 3 queries", CachePanel_total_time;dur=0;desc="Cache
- TimerPanel_utime;dur=46.0690000000028;desc="User CPU time", TimerPanel_stime;dur=19.98100000000136;desc="System
CPU time", TimerPanel_total;dur=66.05000000000416;desc="Total CPU time", TimerPanel_total_time;dur=64.27741050720215;desc="Elapsed
time", SQLPanel_sql_time;dur=4.624843597412109;desc="SQL 3 queries", CachePanel_total_time;dur=0;desc="Cache
0 Calls"
Set-Cookie:
- op_browser_state=2ee53051b4771603207ed004702156a0ad381769d3c645f2e94a3a48;
- op_browser_state=a693ff4d740f6797bfa768e6e8ac345fc63d2a9eb905e3b2a006d576;
Path=/
Vary:
- Accept, Origin, Cookie
Expand Down
24 changes: 13 additions & 11 deletions tests/cassettes/short_fixtures/short_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,36 @@ interactions:
Content-Type:
- application/json
User-Agent:
- python-requests/2.23.0
- python-requests/2.31.0
method: POST
uri: http://dev.squarelet.com/api/token/
uri: https://dev.squarelet.com/api/token/
response:
body:
string: '{"refresh":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY0Njk0MTg1MSwianRpIjoiZmRiYTQ1NTQzOTAzNGE5MGIwN2YxNTk2ZjgxYTdiMzIiLCJ1c2VyX2lkIjoiYTdhMWJmMjctNGY1YS00YzA2LTk2YzItMmQ4MTJjNTFiNjFmIn0.Ubtzw7xFyqYeWxaqnvEHWgciV3XCdlriT28L5S6q_-sh9iz6eL8lAmLrwSlpGMygeUbC6BF3vc45xuGyOUf3uN1BhvdYSa71su_815jVpYhklkN_x2x7CtGpmbRd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:
- keep-alive
Content-Length:
- '1135'
- '1313'
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Thu, 10 Mar 2022 19:50:46 GMT
- Tue, 31 Oct 2023 15:20:05 GMT
Referrer-Policy:
- same-origin
Server:
- nginx/1.15.1
- nginx/1.25.2
Server-Timing:
- TimerPanel_utime;dur=476.3219999999999;desc="User CPU time", TimerPanel_stime;dur=181.05700000000002;desc="System
CPU time", TimerPanel_total;dur=657.3789999999999;desc="Total CPU time", TimerPanel_total_time;dur=455.3394317626953;desc="Elapsed
time", SQLPanel_sql_time;dur=2.1886825561523438;desc="SQL 3 queries", CachePanel_total_time;dur=0;desc="Cache
0 Calls"
- TimerPanel_utime;dur=98.59200000000001;desc="User CPU time", TimerPanel_stime;dur=27.535000000000004;desc="System
CPU time", TimerPanel_total;dur=126.12700000000001;desc="Total CPU time",
TimerPanel_total_time;dur=140.70487022399902;desc="Elapsed time", SQLPanel_sql_time;dur=4.527568817138672;desc="SQL
3 queries", CachePanel_total_time;dur=0;desc="Cache 0 Calls"
Set-Cookie:
- op_browser_state=2ee53051b4771603207ed004702156a0ad381769d3c645f2e94a3a48;
- op_browser_state=e96d3cf5e3a7a7e3f7843f6db1ab63b0ea6c4e79744c0d6554119a1a;
Path=/
Vary:
- Accept, Origin, Cookie
Expand Down
Loading

0 comments on commit 61ca03a

Please sign in to comment.