Skip to content

Commit

Permalink
Merge pull request #1242 from tweepy/tests-and-cassettes-update
Browse files Browse the repository at this point in the history
Update tests and cassettes
  • Loading branch information
Harmon758 authored Jul 14, 2019
2 parents 3978d43 + 85943c1 commit c573a28
Show file tree
Hide file tree
Showing 56 changed files with 4,582 additions and 5,030 deletions.
22 changes: 1 addition & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,9 @@ matrix:

env:
global:
- TWITTER_USERNAME="TheTweepyTester"
- TWITTER_USERNAME="TweepyDev"
- AWS_BUCKET="tweepy"
- USE_REPLAY=1
- secure: ! 'MZv5O5E5E1074sT14wnRThOeFoDTZy+AdIUy+S6XqY/DMVWF2utSx09GLbvM
EM+cnKavRLHTbKpoHPIzzhKx9DQLrxtYy+s3Rw9AeGo8K3LA7mcn4T4eCH7s
RGaEkEqH4wTbe01zsmBJ9n9pALmtFgDk9WeDlpAY9wc5cAPgrZ4='
- secure: ! 'f4nCh413cDJF3llGsUdaSz8Rw8WaEDzsSAqa7rK8IcozvS6+S82nm8A/xKYg
i6A6uC081XWa6JqQ9hyTxHam3OWGAYrytELrEUfkX4ZYMM8lmQYCmnhrN9r/
FaX1haT4lRfm9r0zAYZileLVmcTg8LSZzpRowA/DH9ZO8QD76b4='
- secure: ! 'YxZerqEAifcNS3qTbWyr2MAxDl1hMGv2p87nmw+AHP62LoTGEhHtulQdadjG
CNdhLzyIY+GgRotWVu39OfVPRKyfMBFrpPdUY7tKSZ/O8Ct9792mrSvCOpOV
Li/TYytFtrNQiB7yjcoaub1RabffBcLbu5YzbWN4gPrukQV03Jc='
- secure: ! 'nKkytraqLGUm33K1GpwkjOyxACDHYw4GMvOGyDwVTX7VNwqxbkUojB7qXYoQ
JjlEyFWS487IFteR87U9pt18qongJJIphaBdT9/lDVLsMWZ0Jh5ZLQfX+2jS
aF2UwsrYkzBUMrqMqYCc2+X6CuswLEZTVXDAlNh+emvhxZ5faMI='
- secure: TPQSFGqdl6khXqQqTZ6euROoAmFRnONAlPXD6npvTIIN+fNfnz8lvZtOEWHo2jRPLoU3FyVUhYvTynj6B2hJinulP+RKOMbQ65HCZVHrsitwl1n1QZB5HegQDOYc5q6VTTYn/r8r5tGy35U0O80y1zycTLqSJiXlkdqsSq564pI=

install:
Expand Down
206 changes: 104 additions & 102 deletions cassettes/testaddremovelistmember.json

Large diffs are not rendered by default.

206 changes: 104 additions & 102 deletions cassettes/testaddremovelistmembers.json

Large diffs are not rendered by default.

109 changes: 55 additions & 54 deletions cassettes/testblocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,95 +2,96 @@
"version": 1,
"interactions": [
{
"request": {
"method": "GET",
"uri": "https://api.twitter.com/1.1/blocks/list.json",
"body": null,
"headers": {
"Host": [
"api.twitter.com"
]
}
},
"response": {
"status": {
"message": "OK",
"code": 200
},
"body": {
"string": "{\"users\":[],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\"}"
"code": 200,
"message": "OK"
},
"headers": {
"content-length": [
"96"
"content-type": [
"application/json;charset=utf-8"
],
"x-transaction": [
"008f0ab4008fc58b"
"x-xss-protection": [
"1; mode=block; report=https://twitter.com/i/xss_report"
],
"last-modified": [
"Sat, 05 Nov 2016 21:43:44 GMT"
"x-content-type-options": [
"nosniff"
],
"x-rate-limit-reset": [
"1478382634"
"expires": [
"Tue, 31 Mar 1981 05:00:00 GMT"
],
"strict-transport-security": [
"max-age=631138519"
"last-modified": [
"Sat, 13 Jul 2019 02:27:34 GMT"
],
"server": [
"tsa_b"
],
"cache-control": [
"no-cache, no-store, must-revalidate, pre-check=0, post-check=0"
],
"x-content-type-options": [
"nosniff"
],
"x-rate-limit-remaining": [
"12"
],
"date": [
"Sat, 05 Nov 2016 21:43:44 GMT"
],
"x-twitter-response-tags": [
"BouncerCompliant"
"x-connection-hash": [
"547e037d3886912085fabe18577553b9"
],
"x-rate-limit-limit": [
"15"
],
"x-frame-options": [
"SAMEORIGIN"
],
"status": [
"200 OK"
],
"x-xss-protection": [
"1; mode=block"
"x-rate-limit-remaining": [
"10"
],
"content-disposition": [
"attachment; filename=json.json"
"pragma": [
"no-cache"
],
"expires": [
"Tue, 31 Mar 1981 05:00:00 GMT"
"date": [
"Sat, 13 Jul 2019 02:27:34 GMT"
],
"content-type": [
"application/json;charset=utf-8"
"status": [
"200 OK"
],
"set-cookie": [
"personalization_id=\"v1_YCbHI8sqow22BZssnYYepQ==\"; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:27:34 GMT; Path=/; Domain=.twitter.com",
"lang=en; Path=/",
"guest_id=v1%3A147838222433694193; Domain=.twitter.com; Path=/; Expires=Mon, 05-Nov-2018 21:43:44 UTC"
],
"pragma": [
"no-cache"
"guest_id=v1%3A156298485486413899; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:27:34 GMT; Path=/; Domain=.twitter.com"
],
"x-access-level": [
"read-write-directmessages"
],
"x-twitter-response-tags": [
"BouncerCompliant"
],
"x-transaction": [
"002148e700c5a164"
],
"strict-transport-security": [
"max-age=631138519"
],
"content-disposition": [
"attachment; filename=json.json"
],
"content-length": [
"115"
],
"x-response-time": [
"14"
"13"
],
"x-connection-hash": [
"bd0985431fecef65f8b5db980b866480"
]
}
},
"request": {
"method": "GET",
"uri": "https://api.twitter.com/1.1/blocks/list.json",
"body": null,
"headers": {
"Host": [
"api.twitter.com"
"x-rate-limit-reset": [
"1562984883"
]
},
"body": {
"string": "{\"users\":[],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\",\"total_count\":null}"
}
}
}
Expand Down
107 changes: 54 additions & 53 deletions cassettes/testblocksids.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,95 +2,96 @@
"version": 1,
"interactions": [
{
"request": {
"method": "GET",
"uri": "https://api.twitter.com/1.1/blocks/ids.json",
"body": null,
"headers": {
"Host": [
"api.twitter.com"
]
}
},
"response": {
"status": {
"message": "OK",
"code": 200
},
"body": {
"string": "{\"ids\":[],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\"}"
"code": 200,
"message": "OK"
},
"headers": {
"content-length": [
"94"
"content-type": [
"application/json;charset=utf-8"
],
"x-transaction": [
"00071368004b182f"
"x-xss-protection": [
"1; mode=block; report=https://twitter.com/i/xss_report"
],
"last-modified": [
"Sat, 05 Nov 2016 21:43:44 GMT"
"x-content-type-options": [
"nosniff"
],
"x-rate-limit-reset": [
"1478382634"
"expires": [
"Tue, 31 Mar 1981 05:00:00 GMT"
],
"strict-transport-security": [
"max-age=631138519"
"last-modified": [
"Sat, 13 Jul 2019 02:27:35 GMT"
],
"server": [
"tsa_b"
],
"cache-control": [
"no-cache, no-store, must-revalidate, pre-check=0, post-check=0"
],
"x-content-type-options": [
"nosniff"
],
"x-rate-limit-remaining": [
"12"
],
"date": [
"Sat, 05 Nov 2016 21:43:44 GMT"
],
"x-twitter-response-tags": [
"BouncerCompliant"
"x-connection-hash": [
"ca1dd9934d27bb0ecc7cbe49190750b3"
],
"x-rate-limit-limit": [
"15"
],
"x-frame-options": [
"SAMEORIGIN"
],
"status": [
"200 OK"
],
"x-xss-protection": [
"1; mode=block"
"x-rate-limit-remaining": [
"10"
],
"content-disposition": [
"attachment; filename=json.json"
"pragma": [
"no-cache"
],
"expires": [
"Tue, 31 Mar 1981 05:00:00 GMT"
"date": [
"Sat, 13 Jul 2019 02:27:35 GMT"
],
"content-type": [
"application/json;charset=utf-8"
"status": [
"200 OK"
],
"set-cookie": [
"personalization_id=\"v1_0nRD1pMdTBlvzUP/HTbl8A==\"; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:27:35 GMT; Path=/; Domain=.twitter.com",
"lang=en; Path=/",
"guest_id=v1%3A147838222450730459; Domain=.twitter.com; Path=/; Expires=Mon, 05-Nov-2018 21:43:44 UTC"
],
"pragma": [
"no-cache"
"guest_id=v1%3A156298485515073122; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:27:35 GMT; Path=/; Domain=.twitter.com"
],
"x-access-level": [
"read-write-directmessages"
],
"x-twitter-response-tags": [
"BouncerCompliant"
],
"x-transaction": [
"006ed2c100610a4d"
],
"strict-transport-security": [
"max-age=631138519"
],
"content-disposition": [
"attachment; filename=json.json"
],
"content-length": [
"113"
],
"x-response-time": [
"13"
],
"x-connection-hash": [
"d459a938c510fed355b12501a47108cf"
]
}
},
"request": {
"method": "GET",
"uri": "https://api.twitter.com/1.1/blocks/ids.json",
"body": null,
"headers": {
"Host": [
"api.twitter.com"
"x-rate-limit-reset": [
"1562984884"
]
},
"body": {
"string": "{\"ids\":[],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\",\"total_count\":null}"
}
}
}
Expand Down
Loading

0 comments on commit c573a28

Please sign in to comment.