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
10 changed files
with
308 additions
and
145 deletions.
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
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 was deleted.
Oops, something went wrong.
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
221 changes: 221 additions & 0 deletions
221
tests/integration/cassettes/TestSubredditStylesheet.test_attrs.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,221 @@ | ||
{ | ||
"http_interactions": [ | ||
{ | ||
"recorded_at": "2020-03-21T23:53:51", | ||
"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": [ | ||
"61" | ||
], | ||
"Content-Type": [ | ||
"application/x-www-form-urlencoded" | ||
], | ||
"User-Agent": [ | ||
"<USER_AGENT> PRAW/7.0.0.dev0 prawcore/1.0.1" | ||
] | ||
}, | ||
"method": "POST", | ||
"uri": "https://www.reddit.com/api/v1/access_token" | ||
}, | ||
"response": { | ||
"body": { | ||
"encoding": "UTF-8", | ||
"string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}" | ||
}, | ||
"headers": { | ||
"Accept-Ranges": [ | ||
"bytes" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Length": [ | ||
"118" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=UTF-8" | ||
], | ||
"Date": [ | ||
"Sat, 21 Mar 2020 23:53:51 GMT" | ||
], | ||
"Server": [ | ||
"snooserv" | ||
], | ||
"Set-Cookie": [ | ||
"edgebucket=b9GRcPdORfNO8naijI; Domain=reddit.com; Max-Age=63071999; Path=/; secure" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=15552000; includeSubDomains; preload" | ||
], | ||
"Via": [ | ||
"1.1 varnish" | ||
], | ||
"X-Cache": [ | ||
"MISS" | ||
], | ||
"X-Cache-Hits": [ | ||
"0" | ||
], | ||
"X-Moose": [ | ||
"majestic" | ||
], | ||
"X-Served-By": [ | ||
"cache-lga21941-LGA" | ||
], | ||
"X-Timer": [ | ||
"S1584834832.507552,VS0,VE314" | ||
], | ||
"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": "2020-03-21T23:53:52", | ||
"request": { | ||
"body": { | ||
"encoding": "utf-8", | ||
"string": "" | ||
}, | ||
"headers": { | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Accept-Encoding": [ | ||
"identity" | ||
], | ||
"Authorization": [ | ||
"bearer <ACCESS_TOKEN>" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Cookie": [ | ||
"edgebucket=b9GRcPdORfNO8naijI" | ||
], | ||
"User-Agent": [ | ||
"<USER_AGENT> PRAW/7.0.0.dev0 prawcore/1.0.1" | ||
] | ||
}, | ||
"method": "GET", | ||
"uri": "https://oauth.reddit.com/r/<TEST_SUBREDDIT>/about/stylesheet/?raw_json=1" | ||
}, | ||
"response": { | ||
"body": { | ||
"encoding": "UTF-8", | ||
"string": "{\"kind\": \"stylesheet\", \"data\": {\"images\": [{\"url\": \"https://b.thumbs.redditmedia.com/pFZFx9GVBHDtoJp_7We5AG3aWT1ldcLl6n55wYL2kro.png\", \"link\": \"url(%%Watermark%%)\", \"name\": \"Watermark\"}], \"subreddit_id\": \"t5_2bhxu0\", \"stylesheet\": \"/* test */\"}}" | ||
}, | ||
"headers": { | ||
"Accept-Ranges": [ | ||
"bytes" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Length": [ | ||
"245" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=UTF-8" | ||
], | ||
"Date": [ | ||
"Sat, 21 Mar 2020 23:53:52 GMT" | ||
], | ||
"Server": [ | ||
"snooserv" | ||
], | ||
"Set-Cookie": [ | ||
"loid=00000000005bn5wlvy.2.1577584524387.Z0FBQUFBQmVkcWtRRnFVcTJ1VC11Qnd3dUpDcVpRLXNPb0U2d1VvV2pxZFNCRmJMZW00ODRzcURTZXFtYlpkWlpfWXdkZllzZ0MyM0FQVFo0SXJURFdfVEhnVlBPNVpHTkFhaEdyMmhLRFVsT2dIMUhKYlZRaFQ0Ynh1blpvV2hoTWx0R0NQTFF1U3Y; Domain=reddit.com; Max-Age=63071999; Path=/; expires=Mon, 21-Mar-2022 23:53:52 GMT; secure; SameSite=None; Secure", | ||
"session_tracker=fIz54mlWmWeZTqgtox.0.1584834832000.Z0FBQUFBQmVkcWtRMnBxRS1WU1lvNERSTkV2SnNuSWI4eVpwWkphTEVyalRjSjNNSDM1d3ptOEFIbWlxZHMzbmR4M0NPWEtUTmRGNVV6cTVJQkJ4MXpLUGhEX082R01VNHk2QmYxQ0NSZ1Y5UjUwNVJrZFFNNWZFT3ZBQTM4XzVYY1NJdC14VzBJVWI; Domain=reddit.com; Max-Age=7199; Path=/; expires=Sun, 22-Mar-2020 01:53:52 GMT; secure; SameSite=None; Secure", | ||
"csv=1; Max-Age=63072000; Domain=.reddit.com; Path=/; Secure; SameSite=None" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=15552000; includeSubDomains; preload" | ||
], | ||
"Via": [ | ||
"1.1 varnish" | ||
], | ||
"X-Cache": [ | ||
"MISS" | ||
], | ||
"X-Cache-Hits": [ | ||
"0" | ||
], | ||
"X-Moose": [ | ||
"majestic" | ||
], | ||
"X-Served-By": [ | ||
"cache-lga21925-LGA" | ||
], | ||
"X-Timer": [ | ||
"S1584834832.963531,VS0,VE121" | ||
], | ||
"cache-control": [ | ||
"private, s-maxage=0, max-age=0, must-revalidate, no-store, max-age=0, must-revalidate" | ||
], | ||
"expires": [ | ||
"-1" | ||
], | ||
"x-content-type-options": [ | ||
"nosniff" | ||
], | ||
"x-frame-options": [ | ||
"SAMEORIGIN" | ||
], | ||
"x-ratelimit-remaining": [ | ||
"599.0" | ||
], | ||
"x-ratelimit-reset": [ | ||
"368" | ||
], | ||
"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/r/<TEST_SUBREDDIT>/about/stylesheet/?raw_json=1" | ||
} | ||
} | ||
], | ||
"recorded_with": "betamax/0.8.1" | ||
} |
Oops, something went wrong.