Skip to content

Commit

Permalink
🔧 convert the cassettes to betamax fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret committed Nov 10, 2024
1 parent 0df1a03 commit 2601d53
Show file tree
Hide file tree
Showing 657 changed files with 21,126 additions and 29,558 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
{
"interactions": [
"version": 1,
"http_interactions": [
{
"request": {
"method": "POST",
"uri": "https://www.reddit.com/api/v1/access_token",
"body": [
[
"device_id",
"DO_NOT_TRACK_THIS_DEVICE"
],
[
"grant_type",
"https://oauth.reddit.com/grants/installed_client"
]
],
"headers": {
"User-Agent": [
"<USER_AGENT> Async PRAW/7.1.1.dev0 asyncprawcore/1.4.0.post1"
Expand All @@ -27,6 +18,9 @@
"AUTHORIZATION": [
"Basic ZWFsZ0Q2aDRnUUFSa0E6"
]
},
"body": {
"string": "[[\"device_id\", \"DO_NOT_TRACK_THIS_DEVICE\"], [\"grant_type\", \"https://oauth.reddit.com/grants/installed_client\"]]"
}
},
"response": {
Expand Down Expand Up @@ -56,12 +50,12 @@
"Server": "snooserv"
},
"body": {
"string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"device_id\": \"DO_NOT_TRACK_THIS_DEVICE\", \"expires_in\": 3600, \"scope\": \"*\"}"
"string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"device_id\": \"DO_NOT_TRACK_THIS_DEVICE\", \"expires_in\": 3600, \"scope\": \"*\"}",
"encoding": "utf-8"
},
"url": "https://www.reddit.com/api/v1/access_token"
}
},
"recorded_at": "2020-07-04T18:07:24"
}
],
"recorded_at": "2020-07-04T18:07:24",
"version": 1
]
}
22 changes: 10 additions & 12 deletions tests/integration/cassettes/TestAuthScript.test_scopes.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"interactions": [
"version": 1,
"http_interactions": [
{
"request": {
"method": "POST",
"uri": "https://www.reddit.com/api/v1/access_token",
"body": [
[
"grant_type",
"client_credentials"
]
],
"headers": {
"User-Agent": [
"<USER_AGENT> Async PRAW/7.1.1.dev0 asyncprawcore/1.4.0.post1"
Expand All @@ -23,6 +18,9 @@
"AUTHORIZATION": [
"Basic <BASIC_AUTH>"
]
},
"body": {
"string": "[[\"grant_type\", \"client_credentials\"]]"
}
},
"response": {
Expand Down Expand Up @@ -52,12 +50,12 @@
"Server": "snooserv"
},
"body": {
"string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}"
"string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}",
"encoding": "utf-8"
},
"url": "https://www.reddit.com/api/v1/access_token"
}
},
"recorded_at": "2020-07-04T18:12:48"
}
],
"recorded_at": "2020-07-04T18:12:48",
"version": 1
]
}
30 changes: 10 additions & 20 deletions tests/integration/cassettes/TestAuthWeb.test_authorize.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
{
"interactions": [
"version": 1,
"http_interactions": [
{
"request": {
"method": "POST",
"uri": "https://www.reddit.com/api/v1/access_token",
"body": [
[
"code",
"<AUTH_CODE>"
],
[
"grant_type",
"authorization_code"
],
[
"redirect_uri",
"<REDIRECT_URI>"
]
],
"headers": {
"User-Agent": [
"<USER_AGENT> Async PRAW/7.1.1.dev0 asyncprawcore/1.4.0.post1"
Expand All @@ -31,6 +18,9 @@
"AUTHORIZATION": [
"Basic <BASIC_AUTH>"
]
},
"body": {
"string": "[[\"code\", \"<AUTH_CODE>\"], [\"grant_type\", \"authorization_code\"], [\"redirect_uri\", \"<REDIRECT_URI>\"]]"
}
},
"response": {
Expand Down Expand Up @@ -59,12 +49,12 @@
"Server": "snooserv"
},
"body": {
"string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"refresh_token\": \"40646879-jy7U4xwiZr66H1H3lmI9_3ARDWQ\", \"scope\": \"submit\"}"
"string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"refresh_token\": \"40646879-jy7U4xwiZr66H1H3lmI9_3ARDWQ\", \"scope\": \"submit\"}",
"encoding": "utf-8"
},
"url": "https://www.reddit.com/api/v1/access_token"
}
},
"recorded_at": "2020-07-04T18:07:23"
}
],
"recorded_at": "2020-07-04T18:07:23",
"version": 1
]
}
22 changes: 10 additions & 12 deletions tests/integration/cassettes/TestAuthWeb.test_scopes__read_only.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"interactions": [
"version": 1,
"http_interactions": [
{
"request": {
"method": "POST",
"uri": "https://www.reddit.com/api/v1/access_token",
"body": [
[
"grant_type",
"client_credentials"
]
],
"headers": {
"User-Agent": [
"<USER_AGENT> Async PRAW/7.1.1.dev0 asyncprawcore/1.4.0.post1"
Expand All @@ -23,6 +18,9 @@
"AUTHORIZATION": [
"Basic <BASIC_AUTH>"
]
},
"body": {
"string": "[[\"grant_type\", \"client_credentials\"]]"
}
},
"response": {
Expand Down Expand Up @@ -52,12 +50,12 @@
"Server": "snooserv"
},
"body": {
"string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}"
"string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}",
"encoding": "utf-8"
},
"url": "https://www.reddit.com/api/v1/access_token"
}
},
"recorded_at": "2020-07-04T18:07:23"
}
],
"recorded_at": "2020-07-04T18:07:23",
"version": 1
]
}
Loading

0 comments on commit 2601d53

Please sign in to comment.