From: Harmon Date: Fri, 12 Feb 2021 23:31:38 +0000 (-0600) Subject: Update cassettes for tests using API.followers_ids X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7ce5c298c8aaba0906b3b02dcf0ee36d72959163;p=tweepy.git Update cassettes for tests using API.followers_ids --- diff --git a/cassettes/testcursorcursoritems.json b/cassettes/testcursorcursoritems.json deleted file mode 100644 index a01297e..0000000 --- a/cassettes/testcursorcursoritems.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "method": "GET", - "uri": "https://api.twitter.com/1.1/friends/ids.json?cursor=-1", - "body": null, - "headers": { - "Host": [ - "api.twitter.com" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "content-type": [ - "application/json;charset=utf-8" - ], - "x-xss-protection": [ - "1; mode=block; report=https://twitter.com/i/xss_report" - ], - "x-content-type-options": [ - "nosniff" - ], - "expires": [ - "Tue, 31 Mar 1981 05:00:00 GMT" - ], - "last-modified": [ - "Sat, 13 Jul 2019 02:28:19 GMT" - ], - "server": [ - "tsa_b" - ], - "cache-control": [ - "no-cache, no-store, must-revalidate, pre-check=0, post-check=0" - ], - "x-connection-hash": [ - "1928fda8c227452cfad281837da1472b" - ], - "x-rate-limit-limit": [ - "15" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-rate-limit-remaining": [ - "14" - ], - "pragma": [ - "no-cache" - ], - "date": [ - "Sat, 13 Jul 2019 02:28:19 GMT" - ], - "status": [ - "200 OK" - ], - "set-cookie": [ - "personalization_id=\"v1_vwUGCx1XdTqsxLbGc59PPg==\"; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:28:19 GMT; Path=/; Domain=.twitter.com", - "lang=en; Path=/", - "guest_id=v1%3A156298489997137462; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:28:19 GMT; Path=/; Domain=.twitter.com" - ], - "x-access-level": [ - "read-write-directmessages" - ], - "x-twitter-response-tags": [ - "BouncerCompliant" - ], - "x-transaction": [ - "003bf35d00a76533" - ], - "strict-transport-security": [ - "max-age=631138519" - ], - "content-disposition": [ - "attachment; filename=json.json" - ], - "content-length": [ - "131" - ], - "x-response-time": [ - "14" - ], - "x-rate-limit-reset": [ - "1562985799" - ] - }, - "body": { - "string": "{\"ids\":[6253282,2244994945],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\",\"total_count\":null}" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://api.twitter.com/1.1/followers/ids.json?id=TweepyDev&cursor=-1", - "body": null, - "headers": { - "Host": [ - "api.twitter.com" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "content-type": [ - "application/json;charset=utf-8" - ], - "x-xss-protection": [ - "1; mode=block; report=https://twitter.com/i/xss_report" - ], - "x-content-type-options": [ - "nosniff" - ], - "expires": [ - "Tue, 31 Mar 1981 05:00:00 GMT" - ], - "last-modified": [ - "Sat, 13 Jul 2019 02:28:20 GMT" - ], - "server": [ - "tsa_b" - ], - "cache-control": [ - "no-cache, no-store, must-revalidate, pre-check=0, post-check=0" - ], - "x-connection-hash": [ - "dba191e360729b647553a30e45efcf69" - ], - "x-rate-limit-limit": [ - "15" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-rate-limit-remaining": [ - "14" - ], - "pragma": [ - "no-cache" - ], - "date": [ - "Sat, 13 Jul 2019 02:28:20 GMT" - ], - "status": [ - "200 OK" - ], - "set-cookie": [ - "personalization_id=\"v1_ZlYN0MknGEIA4LkfHEkKsg==\"; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:28:20 GMT; Path=/; Domain=.twitter.com", - "lang=en; Path=/", - "guest_id=v1%3A156298490021299657; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:28:20 GMT; Path=/; Domain=.twitter.com" - ], - "x-access-level": [ - "read-write-directmessages" - ], - "x-twitter-response-tags": [ - "BouncerCompliant" - ], - "x-transaction": [ - "0014527100318530" - ], - "strict-transport-security": [ - "max-age=631138519" - ], - "content-disposition": [ - "attachment; filename=json.json" - ], - "content-length": [ - "122" - ], - "x-response-time": [ - "25" - ], - "x-rate-limit-reset": [ - "1562985800" - ] - }, - "body": { - "string": "{\"ids\":[145336962],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\",\"total_count\":null}" - } - } - } - ] -} \ No newline at end of file diff --git a/cassettes/testcursorcursoritems.yaml b/cassettes/testcursorcursoritems.yaml new file mode 100644 index 0000000..fdf8293 --- /dev/null +++ b/cassettes/testcursorcursoritems.yaml @@ -0,0 +1,148 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.25.1 + method: GET + uri: https://api.twitter.com/1.1/friends/ids.json?cursor=-1 + response: + body: + string: !!binary | + H4sIAAAAAAAAAFzKwQrCMAyA4XfJOYcmTZNmryIyZO4wGKusrQjDd9fj9Ph//Acs9wrDJSdTd1dn + ja5CSmhZxQkpmbFbRpIUo7oyWgpROagIqzFxJlROkTMjs4i7uKQrwja/2jj1vZYdhvDTY21fgwAI + j31+LqXX8/lnp7uVdlvHqfStwbD1dX1/AAAA//8DACleTB7DAAAA + headers: + cache-control: + - no-cache, no-store, must-revalidate, pre-check=0, post-check=0 + content-disposition: + - attachment; filename=json.json + content-encoding: + - gzip + content-length: + - '153' + content-type: + - application/json;charset=utf-8 + date: + - Fri, 12 Feb 2021 23:29:03 GMT + expires: + - Tue, 31 Mar 1981 05:00:00 GMT + last-modified: + - Fri, 12 Feb 2021 23:29:03 GMT + pragma: + - no-cache + server: + - tsa_b + set-cookie: + - personalization_id="v1_CKqJzwqWaovePh6gjmaeYQ=="; Max-Age=63072000; Expires=Sun, + 12 Feb 2023 23:29:03 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None + - lang=en; Path=/ + - guest_id=v1%3A161317254375268593; Max-Age=63072000; Expires=Sun, 12 Feb 2023 + 23:29:03 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None + status: + - 200 OK + strict-transport-security: + - max-age=631138519 + x-access-level: + - read-write-directmessages + x-connection-hash: + - 23ef2eff67bf3d377021ea3131d4cd9c + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-rate-limit-limit: + - '15' + x-rate-limit-remaining: + - '14' + x-rate-limit-reset: + - '1613173443' + x-response-time: + - '20' + x-transaction: + - 00a626be0047d878 + x-twitter-response-tags: + - BouncerCompliant + x-xss-protection: + - '0' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - guest_id=v1%3A161317254375268593; personalization_id="v1_CKqJzwqWaovePh6gjmaeYQ=="; + lang=en + User-Agent: + - python-requests/2.25.1 + method: GET + uri: https://api.twitter.com/1.1/followers/ids.json?cursor=-1&screen_name=TweepyDev + response: + body: + string: !!binary | + H4sIAAAAAAAAAKpWykwpVrKKNjQ1NzeyNLfQMTQxNTY2szQzitVRykutKIlPLi0qzi9SsjJA4ccX + lwDFlAyUdJQKilLLMvNLi5FVookhqS7JL0nMiU/OL80rUbLKK83JqQUAAAD//wMADfXWf4MAAAA= + headers: + cache-control: + - no-cache, no-store, must-revalidate, pre-check=0, post-check=0 + content-disposition: + - attachment; filename=json.json + content-encoding: + - gzip + content-length: + - '113' + content-type: + - application/json;charset=utf-8 + date: + - Fri, 12 Feb 2021 23:29:04 GMT + expires: + - Tue, 31 Mar 1981 05:00:00 GMT + last-modified: + - Fri, 12 Feb 2021 23:29:04 GMT + pragma: + - no-cache + server: + - tsa_b + status: + - 200 OK + strict-transport-security: + - max-age=631138519 + x-access-level: + - read-write-directmessages + x-connection-hash: + - 5447ba711d0e8cb655f9b9ba810fe801 + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-rate-limit-limit: + - '15' + x-rate-limit-remaining: + - '11' + x-rate-limit-reset: + - '1613173286' + x-response-time: + - '23' + x-transaction: + - 00ae59170027f80f + x-twitter-response-tags: + - BouncerCompliant + x-xss-protection: + - '0' + status: + code: 200 + message: OK +version: 1 diff --git a/cassettes/testcursorcursorpages.json b/cassettes/testcursorcursorpages.json deleted file mode 100644 index 2719b50..0000000 --- a/cassettes/testcursorcursorpages.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "method": "GET", - "uri": "https://api.twitter.com/1.1/friends/ids.json?cursor=-1", - "body": null, - "headers": { - "Host": [ - "api.twitter.com" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "content-type": [ - "application/json;charset=utf-8" - ], - "x-xss-protection": [ - "1; mode=block; report=https://twitter.com/i/xss_report" - ], - "x-content-type-options": [ - "nosniff" - ], - "expires": [ - "Tue, 31 Mar 1981 05:00:00 GMT" - ], - "last-modified": [ - "Sat, 13 Jul 2019 02:28:20 GMT" - ], - "server": [ - "tsa_b" - ], - "cache-control": [ - "no-cache, no-store, must-revalidate, pre-check=0, post-check=0" - ], - "x-connection-hash": [ - "bf4ba27d0ac8bffabe7d011a7bcf97c9" - ], - "x-rate-limit-limit": [ - "15" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-rate-limit-remaining": [ - "13" - ], - "pragma": [ - "no-cache" - ], - "date": [ - "Sat, 13 Jul 2019 02:28:20 GMT" - ], - "status": [ - "200 OK" - ], - "set-cookie": [ - "personalization_id=\"v1_PFjWCUBgJ1fHFp55lOqgZA==\"; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:28:20 GMT; Path=/; Domain=.twitter.com", - "lang=en; Path=/", - "guest_id=v1%3A156298490048970790; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:28:20 GMT; Path=/; Domain=.twitter.com" - ], - "x-access-level": [ - "read-write-directmessages" - ], - "x-twitter-response-tags": [ - "BouncerCompliant" - ], - "x-transaction": [ - "00cc464700242821" - ], - "strict-transport-security": [ - "max-age=631138519" - ], - "content-disposition": [ - "attachment; filename=json.json" - ], - "content-length": [ - "131" - ], - "x-response-time": [ - "15" - ], - "x-rate-limit-reset": [ - "1562985799" - ] - }, - "body": { - "string": "{\"ids\":[6253282,2244994945],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\",\"total_count\":null}" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://api.twitter.com/1.1/followers/ids.json?id=TweepyDev&cursor=-1", - "body": null, - "headers": { - "Host": [ - "api.twitter.com" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "content-type": [ - "application/json;charset=utf-8" - ], - "x-xss-protection": [ - "1; mode=block; report=https://twitter.com/i/xss_report" - ], - "x-content-type-options": [ - "nosniff" - ], - "expires": [ - "Tue, 31 Mar 1981 05:00:00 GMT" - ], - "last-modified": [ - "Sat, 13 Jul 2019 02:28:20 GMT" - ], - "server": [ - "tsa_b" - ], - "cache-control": [ - "no-cache, no-store, must-revalidate, pre-check=0, post-check=0" - ], - "x-connection-hash": [ - "b1f9c00148de8a84cf798a9406a624ea" - ], - "x-rate-limit-limit": [ - "15" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-rate-limit-remaining": [ - "13" - ], - "pragma": [ - "no-cache" - ], - "date": [ - "Sat, 13 Jul 2019 02:28:20 GMT" - ], - "status": [ - "200 OK" - ], - "set-cookie": [ - "personalization_id=\"v1_Ryxqahs+GM+nu9P/qzGULA==\"; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:28:20 GMT; Path=/; Domain=.twitter.com", - "lang=en; Path=/", - "guest_id=v1%3A156298490073771375; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:28:20 GMT; Path=/; Domain=.twitter.com" - ], - "x-access-level": [ - "read-write-directmessages" - ], - "x-twitter-response-tags": [ - "BouncerCompliant" - ], - "x-transaction": [ - "0066bbf700c65f7f" - ], - "strict-transport-security": [ - "max-age=631138519" - ], - "content-disposition": [ - "attachment; filename=json.json" - ], - "content-length": [ - "122" - ], - "x-response-time": [ - "20" - ], - "x-rate-limit-reset": [ - "1562985800" - ] - }, - "body": { - "string": "{\"ids\":[145336962],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\",\"total_count\":null}" - } - } - } - ] -} \ No newline at end of file diff --git a/cassettes/testcursorcursorpages.yaml b/cassettes/testcursorcursorpages.yaml new file mode 100644 index 0000000..237d18f --- /dev/null +++ b/cassettes/testcursorcursorpages.yaml @@ -0,0 +1,148 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.25.1 + method: GET + uri: https://api.twitter.com/1.1/friends/ids.json?cursor=-1 + response: + body: + string: !!binary | + H4sIAAAAAAAAAFzKwQrCMAyA4XfJOYcmTZNmryIyZO4wGKusrQjDd9fj9Ph//Acs9wrDJSdTd1dn + ja5CSmhZxQkpmbFbRpIUo7oyWgpROagIqzFxJlROkTMjs4i7uKQrwja/2jj1vZYdhvDTY21fgwAI + j31+LqXX8/lnp7uVdlvHqfStwbD1dX1/AAAA//8DACleTB7DAAAA + headers: + cache-control: + - no-cache, no-store, must-revalidate, pre-check=0, post-check=0 + content-disposition: + - attachment; filename=json.json + content-encoding: + - gzip + content-length: + - '153' + content-type: + - application/json;charset=utf-8 + date: + - Fri, 12 Feb 2021 23:29:04 GMT + expires: + - Tue, 31 Mar 1981 05:00:00 GMT + last-modified: + - Fri, 12 Feb 2021 23:29:04 GMT + pragma: + - no-cache + server: + - tsa_b + set-cookie: + - personalization_id="v1_FXShy2e47TeUuAHnSV6pFw=="; Max-Age=63072000; Expires=Sun, + 12 Feb 2023 23:29:04 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None + - lang=en; Path=/ + - guest_id=v1%3A161317254433441601; Max-Age=63072000; Expires=Sun, 12 Feb 2023 + 23:29:04 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None + status: + - 200 OK + strict-transport-security: + - max-age=631138519 + x-access-level: + - read-write-directmessages + x-connection-hash: + - 20dbf735aab4e501dfdb0e5a3ee667c8 + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-rate-limit-limit: + - '15' + x-rate-limit-remaining: + - '13' + x-rate-limit-reset: + - '1613173443' + x-response-time: + - '16' + x-transaction: + - 00722e2a00c9bc1f + x-twitter-response-tags: + - BouncerCompliant + x-xss-protection: + - '0' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - guest_id=v1%3A161317254433441601; personalization_id="v1_FXShy2e47TeUuAHnSV6pFw=="; + lang=en + User-Agent: + - python-requests/2.25.1 + method: GET + uri: https://api.twitter.com/1.1/followers/ids.json?cursor=-1&screen_name=TweepyDev + response: + body: + string: !!binary | + H4sIAAAAAAAAAKpWykwpVrKKNjQ1NzeyNLfQMTQxNTY2szQzitVRykutKIlPLi0qzi9SsjJA4ccX + lwDFlAyUdJQKilLLMvNLi5FVookhqS7JL0nMiU/OL80rUbLKK83JqQUAAAD//wMADfXWf4MAAAA= + headers: + cache-control: + - no-cache, no-store, must-revalidate, pre-check=0, post-check=0 + content-disposition: + - attachment; filename=json.json + content-encoding: + - gzip + content-length: + - '113' + content-type: + - application/json;charset=utf-8 + date: + - Fri, 12 Feb 2021 23:29:04 GMT + expires: + - Tue, 31 Mar 1981 05:00:00 GMT + last-modified: + - Fri, 12 Feb 2021 23:29:04 GMT + pragma: + - no-cache + server: + - tsa_b + status: + - 200 OK + strict-transport-security: + - max-age=631138519 + x-access-level: + - read-write-directmessages + x-connection-hash: + - c8fbfddf5b3c4a55a3a077b4b79a6f26 + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-rate-limit-limit: + - '15' + x-rate-limit-remaining: + - '10' + x-rate-limit-reset: + - '1613173286' + x-response-time: + - '22' + x-transaction: + - 00b656fd007b3ff5 + x-twitter-response-tags: + - BouncerCompliant + x-xss-protection: + - '0' + status: + code: 200 + message: OK +version: 1 diff --git a/cassettes/testfollowersids.json b/cassettes/testfollowersids.json deleted file mode 100644 index 1eb4e44..0000000 --- a/cassettes/testfollowersids.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "method": "GET", - "uri": "https://api.twitter.com/1.1/followers/ids.json?id=TweepyDev", - "body": null, - "headers": { - "Host": [ - "api.twitter.com" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "content-type": [ - "application/json;charset=utf-8" - ], - "x-xss-protection": [ - "1; mode=block; report=https://twitter.com/i/xss_report" - ], - "x-content-type-options": [ - "nosniff" - ], - "expires": [ - "Tue, 31 Mar 1981 05:00:00 GMT" - ], - "last-modified": [ - "Sat, 13 Jul 2019 02:27:39 GMT" - ], - "server": [ - "tsa_b" - ], - "cache-control": [ - "no-cache, no-store, must-revalidate, pre-check=0, post-check=0" - ], - "x-connection-hash": [ - "ebbaf9b67a4e7607ee0e2d1814453200" - ], - "x-rate-limit-limit": [ - "15" - ], - "x-frame-options": [ - "SAMEORIGIN" - ], - "x-rate-limit-remaining": [ - "2" - ], - "pragma": [ - "no-cache" - ], - "date": [ - "Sat, 13 Jul 2019 02:27:39 GMT" - ], - "status": [ - "200 OK" - ], - "set-cookie": [ - "personalization_id=\"v1_55/v+TEPUoseNpNOBo1gMA==\"; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:27:39 GMT; Path=/; Domain=.twitter.com", - "lang=en; Path=/", - "guest_id=v1%3A156298485986211124; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:27:39 GMT; Path=/; Domain=.twitter.com" - ], - "x-access-level": [ - "read-write-directmessages" - ], - "x-twitter-response-tags": [ - "BouncerCompliant" - ], - "x-transaction": [ - "006b0b9100c429e3" - ], - "strict-transport-security": [ - "max-age=631138519" - ], - "content-disposition": [ - "attachment; filename=json.json" - ], - "content-length": [ - "122" - ], - "x-response-time": [ - "25" - ], - "x-rate-limit-reset": [ - "1562984888" - ] - }, - "body": { - "string": "{\"ids\":[145336962],\"next_cursor\":0,\"next_cursor_str\":\"0\",\"previous_cursor\":0,\"previous_cursor_str\":\"0\",\"total_count\":null}" - } - } - } - ] -} \ No newline at end of file diff --git a/cassettes/testfollowersids.yaml b/cassettes/testfollowersids.yaml new file mode 100644 index 0000000..cb4bac2 --- /dev/null +++ b/cassettes/testfollowersids.yaml @@ -0,0 +1,76 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.25.1 + method: GET + uri: https://api.twitter.com/1.1/followers/ids.json?screen_name=TweepyDev + response: + body: + string: !!binary | + H4sIAAAAAAAAAKpWykwpVrKKNjQ1NzeyNLfQMTQxNTY2szQzitVRykutKIlPLi0qzi9SsjJA4ccX + lwDFlAyUdJQKilLLMvNLi5FVookhqS7JL0nMiU/OL80rUbLKK83JqQUAAAD//wMADfXWf4MAAAA= + headers: + cache-control: + - no-cache, no-store, must-revalidate, pre-check=0, post-check=0 + content-disposition: + - attachment; filename=json.json + content-encoding: + - gzip + content-length: + - '113' + content-type: + - application/json;charset=utf-8 + date: + - Fri, 12 Feb 2021 23:26:26 GMT + expires: + - Tue, 31 Mar 1981 05:00:00 GMT + last-modified: + - Fri, 12 Feb 2021 23:26:26 GMT + pragma: + - no-cache + server: + - tsa_b + set-cookie: + - personalization_id="v1_E4S85sbqqf18p/qFlDsitQ=="; Max-Age=63072000; Expires=Sun, + 12 Feb 2023 23:26:26 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None + - lang=en; Path=/ + - guest_id=v1%3A161317238617765137; Max-Age=63072000; Expires=Sun, 12 Feb 2023 + 23:26:26 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None + status: + - 200 OK + strict-transport-security: + - max-age=631138519 + x-access-level: + - read-write-directmessages + x-connection-hash: + - b4267ee0c139d8be7d3fb00e2f9cc49a + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-rate-limit-limit: + - '15' + x-rate-limit-remaining: + - '14' + x-rate-limit-reset: + - '1613173286' + x-response-time: + - '25' + x-transaction: + - 00514258005abbb3 + x-twitter-response-tags: + - BouncerCompliant + x-xss-protection: + - '0' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_api.py b/tests/test_api.py index 4008005..9fee319 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -172,7 +172,7 @@ class TweepyAPITests(TweepyTestCase): def testfriendsids(self): self.api.friends_ids(screen_name=username) - @tape.use_cassette('testfollowersids.json') + @tape.use_cassette('testfollowersids.yaml', serializer='yaml') def testfollowersids(self): self.api.followers_ids(screen_name=username) diff --git a/tests/test_cursors.py b/tests/test_cursors.py index e78227a..f0d0afc 100644 --- a/tests/test_cursors.py +++ b/tests/test_cursors.py @@ -13,7 +13,7 @@ class TweepyCursorTests(TweepyTestCase): pages = list(Cursor(self.api.user_timeline, count=1).pages(2)) self.assertEqual(len(pages), 2) - @tape.use_cassette('testcursorcursoritems.json') + @tape.use_cassette('testcursorcursoritems.yaml', serializer='yaml') def testcursorcursoritems(self): items = list(Cursor(self.api.friends_ids).items(2)) self.assertEqual(len(items), 2) @@ -21,7 +21,7 @@ class TweepyCursorTests(TweepyTestCase): items = list(Cursor(self.api.followers_ids, screen_name=username).items(1)) self.assertEqual(len(items), 1) - @tape.use_cassette('testcursorcursorpages.json') + @tape.use_cassette('testcursorcursorpages.yaml', serializer='yaml') def testcursorcursorpages(self): pages = list(Cursor(self.api.friends_ids).pages(1)) self.assertTrue(len(pages) == 1)