Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
229 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
tests/integration/cassettes/TestSubmissionModeration.test_lock.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"http_interactions": [ | ||
{ | ||
"recorded_at": "2016-08-30T05:45:59", | ||
"request": { | ||
"body": { | ||
"encoding": "utf-8", | ||
"string": "grant_type=password&password=<PASSWORD>&username=<USERNAME>" | ||
}, | ||
"headers": { | ||
"Accept": "*/*", | ||
"Accept-Encoding": "identity", | ||
"Authorization": "Basic <BASIC_AUTH>", | ||
"Connection": "keep-alive", | ||
"Content-Length": "57", | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
"User-Agent": "<USER_AGENT> PRAW/4.0.0b16 prawcore/0.2.1" | ||
}, | ||
"method": "POST", | ||
"uri": "https://www.reddit.com/api/v1/access_token" | ||
}, | ||
"response": { | ||
"body": { | ||
"encoding": "UTF-8", | ||
"string": "{\"access_token\": \"OV-LN_O3Rmcno6jyEnWu1wGYuD0\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" | ||
}, | ||
"headers": { | ||
"CF-RAY": "2da5f08dd3e01ead-SJC", | ||
"Connection": "keep-alive", | ||
"Content-Length": "105", | ||
"Content-Type": "application/json; charset=UTF-8", | ||
"Date": "Tue, 30 Aug 2016 05:45:59 GMT", | ||
"Server": "cloudflare-nginx", | ||
"Set-Cookie": "__cfduid=dd9e008880a8356e61df7bc2666cbee3b1472535958; expires=Wed, 30-Aug-17 05:45:58 GMT; path=/; domain=.reddit.com; HttpOnly", | ||
"Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload", | ||
"X-Moose": "majestic", | ||
"cache-control": "max-age=0, must-revalidate", | ||
"x-content-type-options": "nosniff", | ||
"x-frame-options": "SAMEORIGIN", | ||
"x-xss-protection": "1; mode=block" | ||
}, | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"url": "https://www.reddit.com/api/v1/access_token" | ||
} | ||
}, | ||
{ | ||
"recorded_at": "2016-08-30T05:45:59", | ||
"request": { | ||
"body": { | ||
"encoding": "utf-8", | ||
"string": "api_type=json&id=t3_4s2idz" | ||
}, | ||
"headers": { | ||
"Accept": "*/*", | ||
"Accept-Encoding": "identity", | ||
"Authorization": "bearer OV-LN_O3Rmcno6jyEnWu1wGYuD0", | ||
"Connection": "keep-alive", | ||
"Content-Length": "26", | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
"Cookie": "loid=qv0hSXXojfOvf1v7r7; loidcreated=2016-08-30T05%3A45%3A58.763Z; __cfduid=dd9e008880a8356e61df7bc2666cbee3b1472535958", | ||
"User-Agent": "<USER_AGENT> PRAW/4.0.0b16 prawcore/0.2.1" | ||
}, | ||
"method": "POST", | ||
"uri": "https://oauth.reddit.com/api/lock/?raw_json=1" | ||
}, | ||
"response": { | ||
"body": { | ||
"encoding": "UTF-8", | ||
"string": "{}" | ||
}, | ||
"headers": { | ||
"CF-RAY": "2da5f091941a1ead-SJC", | ||
"Connection": "keep-alive", | ||
"Content-Length": "2", | ||
"Content-Type": "application/json; charset=UTF-8", | ||
"Date": "Tue, 30 Aug 2016 05:45:59 GMT", | ||
"Server": "cloudflare-nginx", | ||
"Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload", | ||
"X-Moose": "majestic", | ||
"cache-control": "private, s-maxage=0, max-age=0, must-revalidate", | ||
"expires": "-1", | ||
"x-content-type-options": "nosniff", | ||
"x-frame-options": "SAMEORIGIN", | ||
"x-ratelimit-remaining": "599.0", | ||
"x-ratelimit-reset": "241", | ||
"x-ratelimit-used": "1", | ||
"x-ua-compatible": "IE=edge", | ||
"x-xss-protection": "1; mode=block" | ||
}, | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"url": "https://oauth.reddit.com/api/lock/?raw_json=1" | ||
} | ||
} | ||
], | ||
"recorded_with": "betamax/0.7.2" | ||
} |
102 changes: 102 additions & 0 deletions
102
tests/integration/cassettes/TestSubmissionModeration.test_unlock.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"http_interactions": [ | ||
{ | ||
"recorded_at": "2016-08-30T05:46:17", | ||
"request": { | ||
"body": { | ||
"encoding": "utf-8", | ||
"string": "grant_type=password&password=<PASSWORD>&username=<USERNAME>" | ||
}, | ||
"headers": { | ||
"Accept": "*/*", | ||
"Accept-Encoding": "identity", | ||
"Authorization": "Basic <BASIC_AUTH>", | ||
"Connection": "keep-alive", | ||
"Content-Length": "57", | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
"User-Agent": "<USER_AGENT> PRAW/4.0.0b16 prawcore/0.2.1" | ||
}, | ||
"method": "POST", | ||
"uri": "https://www.reddit.com/api/v1/access_token" | ||
}, | ||
"response": { | ||
"body": { | ||
"encoding": "UTF-8", | ||
"string": "{\"access_token\": \"57eYQ3vZa4bQxFiYoQVypr1nKcE\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" | ||
}, | ||
"headers": { | ||
"CF-RAY": "2da5f0fd0c1d0da9-SJC", | ||
"Connection": "keep-alive", | ||
"Content-Length": "105", | ||
"Content-Type": "application/json; charset=UTF-8", | ||
"Date": "Tue, 30 Aug 2016 05:46:16 GMT", | ||
"Server": "cloudflare-nginx", | ||
"Set-Cookie": "__cfduid=df876a91fb8b4fad306457e0fe89e815e1472535976; expires=Wed, 30-Aug-17 05:46:16 GMT; path=/; domain=.reddit.com; HttpOnly", | ||
"Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload", | ||
"X-Moose": "majestic", | ||
"cache-control": "max-age=0, must-revalidate", | ||
"x-content-type-options": "nosniff", | ||
"x-frame-options": "SAMEORIGIN", | ||
"x-xss-protection": "1; mode=block" | ||
}, | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"url": "https://www.reddit.com/api/v1/access_token" | ||
} | ||
}, | ||
{ | ||
"recorded_at": "2016-08-30T05:46:17", | ||
"request": { | ||
"body": { | ||
"encoding": "utf-8", | ||
"string": "api_type=json&id=t3_4s2idz" | ||
}, | ||
"headers": { | ||
"Accept": "*/*", | ||
"Accept-Encoding": "identity", | ||
"Authorization": "bearer 57eYQ3vZa4bQxFiYoQVypr1nKcE", | ||
"Connection": "keep-alive", | ||
"Content-Length": "26", | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
"Cookie": "__cfduid=df876a91fb8b4fad306457e0fe89e815e1472535976; loid=b2eG6z4Uk69eoPvwai; loidcreated=2016-08-30T05%3A46%3A16.527Z", | ||
"User-Agent": "<USER_AGENT> PRAW/4.0.0b16 prawcore/0.2.1" | ||
}, | ||
"method": "POST", | ||
"uri": "https://oauth.reddit.com/api/unlock/?raw_json=1" | ||
}, | ||
"response": { | ||
"body": { | ||
"encoding": "UTF-8", | ||
"string": "{}" | ||
}, | ||
"headers": { | ||
"CF-RAY": "2da5f101b4ae2894-SJC", | ||
"Connection": "keep-alive", | ||
"Content-Length": "2", | ||
"Content-Type": "application/json; charset=UTF-8", | ||
"Date": "Tue, 30 Aug 2016 05:46:17 GMT", | ||
"Server": "cloudflare-nginx", | ||
"Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload", | ||
"X-Moose": "majestic", | ||
"cache-control": "private, s-maxage=0, max-age=0, must-revalidate", | ||
"expires": "-1", | ||
"x-content-type-options": "nosniff", | ||
"x-frame-options": "SAMEORIGIN", | ||
"x-ratelimit-remaining": "598.0", | ||
"x-ratelimit-reset": "223", | ||
"x-ratelimit-used": "2", | ||
"x-ua-compatible": "IE=edge", | ||
"x-xss-protection": "1; mode=block" | ||
}, | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"url": "https://oauth.reddit.com/api/unlock/?raw_json=1" | ||
} | ||
} | ||
], | ||
"recorded_with": "betamax/0.7.2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters