Skip to content

Commit

Permalink
Cleanup tests and update cassettes
Browse files Browse the repository at this point in the history
Waiting after API calls is unecessary, so all time.sleep calls (except
ones for testing cache expiration) are removed
  • Loading branch information
Aaron1011 committed Nov 5, 2016
1 parent 1026afd commit c880c90
Show file tree
Hide file tree
Showing 61 changed files with 4,832 additions and 11,728 deletions.
392 changes: 85 additions & 307 deletions cassettes/testaddremovelistmember.json

Large diffs are not rendered by default.

392 changes: 85 additions & 307 deletions cassettes/testaddremovelistmembers.json

Large diffs are not rendered by default.

175 changes: 50 additions & 125 deletions cassettes/testblocks.json

Large diffs are not rendered by default.

175 changes: 50 additions & 125 deletions cassettes/testblocksids.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,170 +2,95 @@
"version": 1,
"interactions": [
{
"request": {
"headers": {
"Host": [
"api.twitter.com"
]
},
"method": "GET",
"uri": "https://api.twitter.com:443/1.1/blocks/ids.json",
"body": null
},
"response": {
"status": {
"code": 200,
"message": "OK"
"message": "OK",
"code": 200
},
"body": {
"string": "{\"ids\":[],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\"}"
},
"headers": {
"date": [
"Sun, 30 Nov 2014 20:41:06 UTC"
],
"x-content-type-options": [
"nosniff"
],
"x-connection-hash": [
"9efbf2eda97efe7239bd62b99d01e47d"
],
"x-rate-limit-limit": [
"15"
],
"server": [
"tsa_b"
"content-length": [
"94"
],
"x-transaction": [
"5f5fc7bd50f07933"
"00071368004b182f"
],
"x-access-level": [
"read-write-directmessages"
"last-modified": [
"Sat, 05 Nov 2016 21:43:44 GMT"
],
"x-frame-options": [
"SAMEORIGIN"
"x-rate-limit-reset": [
"1478382634"
],
"strict-transport-security": [
"max-age=631138519"
],
"server": [
"tsa_b"
],
"cache-control": [
"no-cache, no-store, must-revalidate, pre-check=0, post-check=0"
],
"content-length": [
"111"
"x-content-type-options": [
"nosniff"
],
"set-cookie": [
"lang=en",
"guest_id=v1%3A141738006645977787; Domain=.twitter.com; Path=/; Expires=Tue, 29-Nov-2016 20:41:06 UTC"
"x-rate-limit-remaining": [
"12"
],
"last-modified": [
"Sun, 30 Nov 2014 20:41:06 GMT"
"date": [
"Sat, 05 Nov 2016 21:43:44 GMT"
],
"x-twitter-response-tags": [
"BouncerCompliant"
],
"x-rate-limit-limit": [
"15"
],
"x-frame-options": [
"SAMEORIGIN"
],
"status": [
"200 OK"
],
"x-xss-protection": [
"1; mode=block"
],
"content-disposition": [
"attachment; filename=json.json"
],
"expires": [
"Tue, 31 Mar 1981 05:00:00 GMT"
],
"content-type": [
"application/json;charset=utf-8"
],
"x-rate-limit-remaining": [
"14"
"set-cookie": [
"lang=en; Path=/",
"guest_id=v1%3A147838222450730459; Domain=.twitter.com; Path=/; Expires=Mon, 05-Nov-2018 21:43:44 UTC"
],
"pragma": [
"no-cache"
],
"x-xss-protection": [
"1; mode=block"
"x-access-level": [
"read-write-directmessages"
],
"x-rate-limit-reset": [
"1417380966"
"x-response-time": [
"13"
],
"x-connection-hash": [
"d459a938c510fed355b12501a47108cf"
]
},
"body": {
"string": "{\"ids\":[81928310,52573909],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\"}"
}
}
},
{
},
"request": {
"method": "GET",
"uri": "https://api.twitter.com/1.1/blocks/ids.json",
"body": null,
"headers": {
"Host": [
"api.twitter.com"
]
},
"method": "GET",
"uri": "https://api.twitter.com:443/1.1/blocks/ids.json",
"body": null
},
"response": {
"status": {
"code": 200,
"message": "OK"
},
"headers": {
"date": [
"Mon, 01 Dec 2014 02:14:46 UTC"
],
"x-content-type-options": [
"nosniff"
],
"x-connection-hash": [
"8c80e86133987c9229b16ad37616ff1e"
],
"cache-control": [
"no-cache, no-store, must-revalidate, pre-check=0, post-check=0"
],
"server": [
"tsa_b"
],
"x-rate-limit-reset": [
"1417400986"
],
"x-access-level": [
"read-write-directmessages"
],
"x-frame-options": [
"SAMEORIGIN"
],
"strict-transport-security": [
"max-age=631138519"
],
"content-type": [
"application/json;charset=utf-8"
],
"content-length": [
"111"
],
"pragma": [
"no-cache"
],
"last-modified": [
"Mon, 01 Dec 2014 02:14:46 GMT"
],
"status": [
"200 OK"
],
"expires": [
"Tue, 31 Mar 1981 05:00:00 GMT"
],
"x-rate-limit-limit": [
"15"
],
"x-rate-limit-remaining": [
"14"
],
"set-cookie": [
"lang=en",
"guest_id=v1%3A141740008634274846; Domain=.twitter.com; Path=/; Expires=Wed, 30-Nov-2016 02:14:46 UTC"
],
"x-xss-protection": [
"1; mode=block"
],
"x-transaction": [
"a597325d8f821157"
]
},
"body": {
"string": "{\"ids\":[81928310,52573909],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\"}"
}
}
}
Expand Down
175 changes: 50 additions & 125 deletions cassettes/testcachedresult.json

Large diffs are not rendered by default.

Loading

0 comments on commit c880c90

Please sign in to comment.