From 5a96f0486308cec2ca4a7fa8b4f6a087cbb0b822 Mon Sep 17 00:00:00 2001 From: Paulo Romeira Date: Sun, 6 May 2018 19:37:06 -0300 Subject: [PATCH] Tweak test_session --- .../test_session.test_invalid_password.json | 196 +++++++++++++++++ ...session.test_invalid_password[logged].json | 196 ----------------- ...ssion.test_invalid_password[unlogged].json | 196 ----------------- .../test_session.test_invalid_user.json | 196 +++++++++++++++++ ...est_session.test_invalid_user[logged].json | 196 ----------------- ...t_session.test_invalid_user[unlogged].json | 196 ----------------- .../test_session.test_session_functions.json | 206 ++++++++++++++++++ ...ession.test_session_functions[logged].json | 206 ------------------ ...sion.test_session_functions[unlogged].json | 206 ------------------ tests/conftest.py | 2 +- 10 files changed, 599 insertions(+), 1197 deletions(-) create mode 100644 tests/cassettes/test_session.test_invalid_password.json delete mode 100644 tests/cassettes/test_session.test_invalid_password[logged].json delete mode 100644 tests/cassettes/test_session.test_invalid_password[unlogged].json create mode 100644 tests/cassettes/test_session.test_invalid_user.json delete mode 100644 tests/cassettes/test_session.test_invalid_user[logged].json delete mode 100644 tests/cassettes/test_session.test_invalid_user[unlogged].json create mode 100644 tests/cassettes/test_session.test_session_functions.json delete mode 100644 tests/cassettes/test_session.test_session_functions[logged].json delete mode 100644 tests/cassettes/test_session.test_session_functions[unlogged].json diff --git a/tests/cassettes/test_session.test_invalid_password.json b/tests/cassettes/test_session.test_invalid_password.json new file mode 100644 index 0000000..84578bd --- /dev/null +++ b/tests/cassettes/test_session.test_invalid_password.json @@ -0,0 +1,196 @@ +{ + "http_interactions": [ + { + "recorded_at": "2018-05-06T22:36:19", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate, br" + ], + "Accept-Language": [ + "en-US" + ], + "Connection": [ + "keep-alive" + ] + }, + "method": "GET", + "uri": "https://www.instagram.com/" + }, + "response": { + "body": { + "base64_string": "H4sIAGOD71oC/7Vc7XPbNtL/nr+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5ZEC+mBpr8MiypU4alS2MDRX5ASBE7ZQGFZxCo8CjxSUGiQEeCRh1IHN93I+KUy8BgDA7dkvo09IqSGqTxXC8Ow6VX+CQwYBNQCMIiKrxQx49GGy924sQjBINObTXgJImX0CAJqe8XBnA8vyhDcH0odL805mgBfkDigEBscAcTgLgA1/GhNKDjRICj0i0TpyAGbNwocPxk6VOPxh3CdOiCutU3ySTod/p68Tsrbb38nd8mK+Vsfs12z9Mz/UtP4ll3uEQqwM2Ok8xPBrmE802W4cePu+Tq1D2b3T5ORvppqH4rTNYtP7fQE3iCrBKzCugCzXVuB2fZVjBqOfObPr+YUKC0G/2KHzh9sWYVnbG5zW9ssdhkYIsFybgtFnSQ6djY5vNrsRD65/yPP/qEkULJOOzSxK7atTkyaxu9/9hlXlyDvPly7BWolN/MdVt8IpOCx49hkefQL/X/cft3FK53WduiP2K6SScK98mdWNAZthFGNp7bWDcnRt3Zs3xW6qsZtIz6gb0DnbqIcWao1o240K9ppKjAPPyewdyGm5vZ6dn8S++gfOqPiDz0F0LupHSWSejQ529tfESn7qxSa1NGfulFXrIMcfJF9lM+0uhuUaEXI4J3G0ohDbwICKGEfNQYX7J53e4Qa/7kRpY5Bj/Wh+TP9Lm5/jtJ/w+tek7RN0kAAA==", + "encoding": "ISO-8859-1", + "string": "" + }, + "headers": { + "Cache-Control": [ + "private, no-cache, no-store, must-revalidate" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Language": [ + "en" + ], + "Content-Length": [ + "5428" + ], + "Content-Type": [ + "text/html" + ], + "Date": [ + "Sun, 06 May 2018 22:36:19 GMT" + ], + "Expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Set-Cookie": [ + "sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "rur=FTW; Path=/", + "csrftoken=Pysp8uGHi51Iak3WCmTxpY0px0XCf11o; expires=Sun, 05-May-2019 22:36:19 GMT; Max-Age=31449600; Path=/; Secure", + "mid=Wu-DYwAEAAF8z5OfnMRj12gJvyc6; expires=Sat, 01-May-2038 22:36:19 GMT; Max-Age=630720000; Path=/" + ], + "Strict-Transport-Security": [ + "max-age=86400" + ], + "Vary": [ + "Cookie, Accept-Language, Accept-Encoding" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://www.instagram.com/" + } + }, + { + "recorded_at": "2018-05-06T22:36:20", + "request": { + "body": { + "encoding": "utf-8", + "string": "username=INSTA_USERNAME&password=wrongINSTA_PASSWORD&queryParams=%7B%7D" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate, br" + ], + "Accept-Language": [ + "en-US" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "68" + ], + "Content-Type": [ + "application/x-www-form-urlencoded" + ], + "Cookie": [ + "csrftoken=Pysp8uGHi51Iak3WCmTxpY0px0XCf11o; mid=Wu-DYwAEAAF8z5OfnMRj12gJvyc6; rur=FTW" + ], + "Host": [ + "www.instagram.com" + ], + "Origin": [ + "https://www.instagram.com" + ], + "Referer": [ + "https://www.instagram.com/" + ], + "X-CSRFToken": [ + "Pysp8uGHi51Iak3WCmTxpY0px0XCf11o" + ], + "X-Instagram-AJAX": [ + "1" + ], + "X-Requested-With": [ + "XMLHttpRequest" + ] + }, + "method": "POST", + "uri": "https://www.instagram.com/accounts/login/ajax/" + }, + "response": { + "body": { + "encoding": null, + "string": "{\"authenticated\": false, \"user\": true, \"status\": \"ok\"}" + }, + "headers": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Origin": [ + "https://www.instagram.com" + ], + "Cache-Control": [ + "private, no-cache, no-store, must-revalidate" + ], + "Connection": [ + "keep-alive" + ], + "Content-Language": [ + "en" + ], + "Content-Length": [ + "54" + ], + "Content-Type": [ + "application/json" + ], + "Date": [ + "Sun, 06 May 2018 22:36:20 GMT" + ], + "Expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Set-Cookie": [ + "csrftoken=Pysp8uGHi51Iak3WCmTxpY0px0XCf11o; expires=Sun, 05-May-2019 22:36:20 GMT; Max-Age=31449600; Path=/; Secure", + "rur=FTW; Path=/" + ], + "Strict-Transport-Security": [ + "max-age=86400" + ], + "Vary": [ + "Cookie, Accept-Language" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://www.instagram.com/accounts/login/ajax/" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/cassettes/test_session.test_invalid_password[logged].json b/tests/cassettes/test_session.test_invalid_password[logged].json deleted file mode 100644 index e6cc0ef..0000000 --- a/tests/cassettes/test_session.test_invalid_password[logged].json +++ /dev/null @@ -1,196 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-05-06T22:29:17", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ] - }, - "method": "GET", - "uri": "https://www.instagram.com/" - }, - "response": { - "body": { - "base64_string": "H4sIAL2B71oC/7VcbXfbNrL+nl/BYve40gkt810kHWZPkmZ3u5s2Pk3S3XtdX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4chnOv8ElgwCagEIRFVHihzh+NNl7sxIlHCAZd2mrASRIvoUESUt8vDOB4flGG4PpQ6HFpzNEK/IDEAYHY4A4mAHEBruNDaUDHiQBHpVsmTkEM2LhR4PjJ3KcejTuE6dAFdbtvkknQN+b15ndS2nr7O70tVsrJ9JptLopn+pdexLPuMw+pADcbSTI93qklnG+yDB8cdMXVqXs2ub0mjPQlTX1rlyxbfm6hp/AUWSVmFdAZmuraDs6ytWDUcqY3fX0xYkBpN/o+PXD6askqOmFTm9/YYrbKwBYzknFbzOhOpWNjm0+vxUzon9Pff+8LRgol47ApEzu2a/Pxqm30F6Cu8uIa5M2TYy9ApfxmqvviI5UUHBzALM+h3+r/7fYvGlxvqrZZ/7HnJh1p3BZ3YkYn2EYY2XhqY92dGAxnK/JZpa8W0DrqB94d6NJFDCtDtWzEhb7XIkUF5gr2BKY23NxMTs+mX/oNyqf+nMdDf6vjTklnmYIOff6rjUds6r4aamvKyC+9yEvmIU6+yPuURzrdbCr0ZkTw7oVSSAMvAkIoIY8640t2r/vdxZo/+CLLfJA+0p+rn+sv2PovFv0/LgIrMMFIAAA=", - "encoding": "ISO-8859-1", - "string": "" - }, - "headers": { - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "5381" - ], - "Content-Type": [ - "text/html" - ], - "Date": [ - "Sun, 06 May 2018 22:29:17 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "rur=FTW; Path=/", - "csrftoken=SZt6PnLqLy1uOEP8xBOWgPKdiwvPLnBk; expires=Sun, 05-May-2019 22:29:17 GMT; Max-Age=31449600; Path=/; Secure", - "mid=Wu-BvQAEAAGMTl6ZnZkQ6RWivumA; expires=Sat, 01-May-2038 22:29:17 GMT; Max-Age=630720000; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language, Accept-Encoding" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/" - } - }, - { - "recorded_at": "2018-05-06T22:29:18", - "request": { - "body": { - "encoding": "utf-8", - "string": "username=INSTA_USERNAME&password=wrongINSTA_PASSWORD&queryParams=%7B%7D" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "68" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "csrftoken=SZt6PnLqLy1uOEP8xBOWgPKdiwvPLnBk; mid=Wu-BvQAEAAGMTl6ZnZkQ6RWivumA; rur=FTW" - ], - "Host": [ - "www.instagram.com" - ], - "Origin": [ - "https://www.instagram.com" - ], - "Referer": [ - "https://www.instagram.com/" - ], - "X-CSRFToken": [ - "SZt6PnLqLy1uOEP8xBOWgPKdiwvPLnBk" - ], - "X-Instagram-AJAX": [ - "1" - ], - "X-Requested-With": [ - "XMLHttpRequest" - ] - }, - "method": "POST", - "uri": "https://www.instagram.com/accounts/login/ajax/" - }, - "response": { - "body": { - "encoding": null, - "string": "{\"authenticated\": false, \"user\": true, \"status\": \"ok\"}" - }, - "headers": { - "Access-Control-Allow-Credentials": [ - "true" - ], - "Access-Control-Allow-Origin": [ - "https://www.instagram.com" - ], - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "54" - ], - "Content-Type": [ - "application/json" - ], - "Date": [ - "Sun, 06 May 2018 22:29:18 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "csrftoken=SZt6PnLqLy1uOEP8xBOWgPKdiwvPLnBk; expires=Sun, 05-May-2019 22:29:18 GMT; Max-Age=31449600; Path=/; Secure", - "rur=FTW; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/accounts/login/ajax/" - } - } - ], - "recorded_with": "betamax/0.8.1" -} \ No newline at end of file diff --git a/tests/cassettes/test_session.test_invalid_password[unlogged].json b/tests/cassettes/test_session.test_invalid_password[unlogged].json deleted file mode 100644 index ea83048..0000000 --- a/tests/cassettes/test_session.test_invalid_password[unlogged].json +++ /dev/null @@ -1,196 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-05-06T22:29:19", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ] - }, - "method": "GET", - "uri": "https://www.instagram.com/" - }, - "response": { - "body": { - "base64_string": "H4sIAL+B71oC/7U8a3fbtpLf8ytY3HtS6YSW+RZJR7knTdPbdNsm2yTdu8f18oDAQEJMASwBynZd//c9ICmZtGgnrZL2Q8R5YTAzGGDw8NOvvn394t3/vnlprf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AkNkpD6ft4mHM/PWQiuD7npl8k5RoAfkDggELd5BxOAOAfX8YG1SceJAEfMZYmTkzbZuFHg+Mncpx6NmwzTZBfUrL7JQoF5bW8WvxNmm+Xv9LZYYZPpNd8+Ml+YX2YSXzRHRKQAXG05yfSkV0s4Xy0W+PHjprg6dc8mt0+MkXngaV78klUtzi30BJ4gi2FeAJ2hqant4GyxkZxazvSmqy9GFGB2Zd7ig6AvVrygEz61xY0tZ+sF2HJGFsKWM9qrdGxsi+m1nEnzc/rnn13BSIFxAdsysSG7bg++6sqcHjWVlzBJvv1y7CXoVNxMTVtipJKCx49hlmXQLfX/dfvXEK63VdusOyi6SUeQu+JOzugE2wgjG09tbJqTg+7sWD6p9DUMRkZ5z96BKV3ksDLUq0pemDcxShbQPt+ewNSGm5vJ6dn0c++gfOxPgdz3dz7ulHRWW9ChT9/aeECn5sTRaMMin3mRl8xDnHyW/ZQHGt0uKsxiRIpmQymkgRcBIZSQB43xOZs37fZzzV/cyGoPs4/NUfczc/pt/trR/wMAsL+M/UgAAA==", - "encoding": "ISO-8859-1", - "string": "" - }, - "headers": { - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "5413" - ], - "Content-Type": [ - "text/html" - ], - "Date": [ - "Sun, 06 May 2018 22:29:19 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "rur=FTW; Path=/", - "csrftoken=HTUdJQqql7aM7hpdODKIIfVjJg8SJkOb; expires=Sun, 05-May-2019 22:29:19 GMT; Max-Age=31449600; Path=/; Secure", - "mid=Wu-BvwAEAAFSnhBpkxvlh14NtufN; expires=Sat, 01-May-2038 22:29:19 GMT; Max-Age=630720000; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language, Accept-Encoding" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/" - } - }, - { - "recorded_at": "2018-05-06T22:29:20", - "request": { - "body": { - "encoding": "utf-8", - "string": "username=INSTA_USERNAME&password=wrongINSTA_PASSWORD&queryParams=%7B%7D" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "68" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "csrftoken=HTUdJQqql7aM7hpdODKIIfVjJg8SJkOb; mid=Wu-BvwAEAAFSnhBpkxvlh14NtufN; rur=FTW" - ], - "Host": [ - "www.instagram.com" - ], - "Origin": [ - "https://www.instagram.com" - ], - "Referer": [ - "https://www.instagram.com/" - ], - "X-CSRFToken": [ - "HTUdJQqql7aM7hpdODKIIfVjJg8SJkOb" - ], - "X-Instagram-AJAX": [ - "1" - ], - "X-Requested-With": [ - "XMLHttpRequest" - ] - }, - "method": "POST", - "uri": "https://www.instagram.com/accounts/login/ajax/" - }, - "response": { - "body": { - "encoding": null, - "string": "{\"authenticated\": false, \"user\": true, \"status\": \"ok\"}" - }, - "headers": { - "Access-Control-Allow-Credentials": [ - "true" - ], - "Access-Control-Allow-Origin": [ - "https://www.instagram.com" - ], - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "54" - ], - "Content-Type": [ - "application/json" - ], - "Date": [ - "Sun, 06 May 2018 22:29:20 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "csrftoken=HTUdJQqql7aM7hpdODKIIfVjJg8SJkOb; expires=Sun, 05-May-2019 22:29:20 GMT; Max-Age=31449600; Path=/; Secure", - "rur=FTW; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/accounts/login/ajax/" - } - } - ], - "recorded_with": "betamax/0.8.1" -} \ No newline at end of file diff --git a/tests/cassettes/test_session.test_invalid_user.json b/tests/cassettes/test_session.test_invalid_user.json new file mode 100644 index 0000000..e72c035 --- /dev/null +++ b/tests/cassettes/test_session.test_invalid_user.json @@ -0,0 +1,196 @@ +{ + "http_interactions": [ + { + "recorded_at": "2018-05-06T22:36:18", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate, br" + ], + "Accept-Language": [ + "en-US" + ], + "Connection": [ + "keep-alive" + ] + }, + "method": "GET", + "uri": "https://www.instagram.com/" + }, + "response": { + "body": { + "base64_string": "H4sIAGKD71oC/7U8a3fbNrLf8ytY7J5UOqFlvkXSUfakadrNnjbJbZLeu9frywMCQwkxBbAEKFt1/d/vAUHJpE07aZW0HyLOC4OZwQCDh59+8/2bF+///faltVLr8tmjp/ofq8R8uUDAkUVKLOUCcXH0UVpcqKNSLJdAjxi3SMmAq6NaCIWePbIsy3q6AkyfP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wVbpE4OTHJxo0Cx0/mPvVo3GaYNrugdvVNFhL0E3q9+J0Utl7+Tm+KlWIyvWK7l+ML/UtP4ov23IeUgOsdJ5me9GoJ55vFAj9+3BZXp+7Z5ObdMNKvNvUzXrJq+LmFnsATZBWYlUBnaKprOzhbbASjljO97uqLEQUKu9YP7IHTFytW0gmb2vzaFrP1AmwxIwtuixntVTo2tvn0SsyE/jn944+uYKRQMA67MrEluzKnWU2tj4TayovrJG++HHsJKuXXU90WH6mk4PFjmGUZdEv9f9z8iYOrXdU2605/rtMR5L64EzM6wTbCyMZTG+vmxKA7e5bPKn01g5ZR3bN3oEsXMawM1aoWF/qhixQlmDfZE5jacH09OT2bfukdlE/9fY/7/njHrZLOMgUd+vytjQd0ao8RtTZF5Bde5CXzECdfZD/lgUZ3iwq9GBG83VAKaeBFQAgl5EFjfMnmdbv9XPMnN7LMCfWxPr9+po+09Z8w+n+5Fj0T0kgAAA==", + "encoding": "ISO-8859-1", + "string": "" + }, + "headers": { + "Cache-Control": [ + "private, no-cache, no-store, must-revalidate" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Language": [ + "en" + ], + "Content-Length": [ + "5392" + ], + "Content-Type": [ + "text/html" + ], + "Date": [ + "Sun, 06 May 2018 22:36:18 GMT" + ], + "Expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Set-Cookie": [ + "sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "rur=FTW; Path=/", + "csrftoken=oFihWgGNLnEYy5MmznroyVYtdNILT3f3; expires=Sun, 05-May-2019 22:36:18 GMT; Max-Age=31449600; Path=/; Secure", + "mid=Wu-DYgAEAAEzVoMRkPuq1aYiCV3m; expires=Sat, 01-May-2038 22:36:18 GMT; Max-Age=630720000; Path=/" + ], + "Strict-Transport-Security": [ + "max-age=86400" + ], + "Vary": [ + "Cookie, Accept-Language, Accept-Encoding" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://www.instagram.com/" + } + }, + { + "recorded_at": "2018-05-06T22:36:19", + "request": { + "body": { + "encoding": "utf-8", + "string": "username=xxx&password=INSTA_PASSWORD&queryParams=%7B%7D" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate, br" + ], + "Accept-Language": [ + "en-US" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/x-www-form-urlencoded" + ], + "Cookie": [ + "csrftoken=oFihWgGNLnEYy5MmznroyVYtdNILT3f3; mid=Wu-DYgAEAAEzVoMRkPuq1aYiCV3m; rur=FTW" + ], + "Host": [ + "www.instagram.com" + ], + "Origin": [ + "https://www.instagram.com" + ], + "Referer": [ + "https://www.instagram.com/" + ], + "X-CSRFToken": [ + "oFihWgGNLnEYy5MmznroyVYtdNILT3f3" + ], + "X-Instagram-AJAX": [ + "1" + ], + "X-Requested-With": [ + "XMLHttpRequest" + ] + }, + "method": "POST", + "uri": "https://www.instagram.com/accounts/login/ajax/" + }, + "response": { + "body": { + "encoding": null, + "string": "{\"authenticated\": false, \"user\": false, \"status\": \"ok\"}" + }, + "headers": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Origin": [ + "https://www.instagram.com" + ], + "Cache-Control": [ + "private, no-cache, no-store, must-revalidate" + ], + "Connection": [ + "keep-alive" + ], + "Content-Language": [ + "en" + ], + "Content-Length": [ + "55" + ], + "Content-Type": [ + "application/json" + ], + "Date": [ + "Sun, 06 May 2018 22:36:18 GMT" + ], + "Expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Set-Cookie": [ + "csrftoken=oFihWgGNLnEYy5MmznroyVYtdNILT3f3; expires=Sun, 05-May-2019 22:36:18 GMT; Max-Age=31449600; Path=/; Secure", + "rur=FTW; Path=/" + ], + "Strict-Transport-Security": [ + "max-age=86400" + ], + "Vary": [ + "Cookie, Accept-Language" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://www.instagram.com/accounts/login/ajax/" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/cassettes/test_session.test_invalid_user[logged].json b/tests/cassettes/test_session.test_invalid_user[logged].json deleted file mode 100644 index 8f48a38..0000000 --- a/tests/cassettes/test_session.test_invalid_user[logged].json +++ /dev/null @@ -1,196 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-05-06T22:29:14", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ] - }, - "method": "GET", - "uri": "https://www.instagram.com/" - }, - "response": { - "body": { - "base64_string": "H4sIALqB71oC/7U873PcNq7f81eovJt0dyKv9XslOcqbNM3d5V3bZJqk8+65fhqKBHcZa0lVpNZ2Xf/vbyhp15ItJ2k3aT9kBQIgCIAgQYJ++s33r1+8+8+bl9Zab8pnj56af6wSi1WGQCCLlFipDAl59EFZQuqjUq5WQI+4sEjJQeijWkqNnj2yLMt6ugZMnz3dgMYWWeNagc5Qo9lR3CO0SG3zWuvqCH5r+DZD/3P0/vnRC7mpsOZFCcgiU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YrbDa/5ruX5Jn5ZRbxrL0HIiXgekdJ5ieDXML5Jsvw48dtcnXqns1u3xEj84rTPOsl60acW+gJPEEWw7wEukBzk9vBWbaVnFrO/KbPLyYEYHZtHtyDoC/WvKQzPrfFjS0XmwxsuSCZsOWCDjIdG9tifi0X0vyc//FHnzBSYFzALk1s0a67262mNldEbeYlTJDvvhx7BToVN3PTl5jIpODxY1jkOfRb/f+6/ZMH17usbdHfBt2kE4375E4u6AzbCCMbz21supOj4exJPiv1NQSGR/XA2YFJXeQ4M9TrWl6Yhy9KltC90Z7B3Iabm9np2fxLn6B86u99PPTHPO6kdFaX0KHPP9r4iEzttaKRhkU+8yIvWYY4+SLnKR/pdLepMJsRKdoDpZAGXgSEUEI+qowv2b3pdxhr/uRBVndjfWzus5+ZK27zJ43+H06Pw/niSAAA", - "encoding": "ISO-8859-1", - "string": "" - }, - "headers": { - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "5400" - ], - "Content-Type": [ - "text/html" - ], - "Date": [ - "Sun, 06 May 2018 22:29:14 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "rur=FTW; Path=/", - "csrftoken=ojZNBriIiwIK54u2ii9uqL2sT8rfILo1; expires=Sun, 05-May-2019 22:29:14 GMT; Max-Age=31449600; Path=/; Secure", - "mid=Wu-BugAEAAF0jiSxVgPs3MJvor7j; expires=Sat, 01-May-2038 22:29:14 GMT; Max-Age=630720000; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language, Accept-Encoding" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/" - } - }, - { - "recorded_at": "2018-05-06T22:29:15", - "request": { - "body": { - "encoding": "utf-8", - "string": "username=xxx&password=INSTA_PASSWORD&queryParams=%7B%7D" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "51" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "csrftoken=ojZNBriIiwIK54u2ii9uqL2sT8rfILo1; mid=Wu-BugAEAAF0jiSxVgPs3MJvor7j; rur=FTW" - ], - "Host": [ - "www.instagram.com" - ], - "Origin": [ - "https://www.instagram.com" - ], - "Referer": [ - "https://www.instagram.com/" - ], - "X-CSRFToken": [ - "ojZNBriIiwIK54u2ii9uqL2sT8rfILo1" - ], - "X-Instagram-AJAX": [ - "1" - ], - "X-Requested-With": [ - "XMLHttpRequest" - ] - }, - "method": "POST", - "uri": "https://www.instagram.com/accounts/login/ajax/" - }, - "response": { - "body": { - "encoding": null, - "string": "{\"authenticated\": false, \"user\": false, \"status\": \"ok\"}" - }, - "headers": { - "Access-Control-Allow-Credentials": [ - "true" - ], - "Access-Control-Allow-Origin": [ - "https://www.instagram.com" - ], - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "55" - ], - "Content-Type": [ - "application/json" - ], - "Date": [ - "Sun, 06 May 2018 22:29:14 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "csrftoken=ojZNBriIiwIK54u2ii9uqL2sT8rfILo1; expires=Sun, 05-May-2019 22:29:14 GMT; Max-Age=31449600; Path=/; Secure", - "rur=FTW; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/accounts/login/ajax/" - } - } - ], - "recorded_with": "betamax/0.8.1" -} \ No newline at end of file diff --git a/tests/cassettes/test_session.test_invalid_user[unlogged].json b/tests/cassettes/test_session.test_invalid_user[unlogged].json deleted file mode 100644 index bc497c7..0000000 --- a/tests/cassettes/test_session.test_invalid_user[unlogged].json +++ /dev/null @@ -1,196 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-05-06T22:29:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ] - }, - "method": "GET", - "uri": "https://www.instagram.com/" - }, - "response": { - "body": { - "base64_string": "H4sIALuB71oC/7U8bXPbNtLf8ytY3E0qTWiZ7yLpMM8kae6uz7VNpkk6d+P64YDAUkJMASwBynZd//dnQFAyadNJWiXJB5P7hsXuYoEFAT395rvXL9/9980ra6021bNHT/Ufq8J8lSHgyCIVljJDXBx9kBYX6qgSqxXQI8YtUjHg6qgRQqFnjyzLsp6uAdNnTzegsEXWuJGgMtSq8ijuCTqiDr1Wqj6C31q2zdB/jt4/P3opNjVWrKgAWURwBVxl6PtXGdAVoGePbtkVUxU8e/Q9lwqvGrx59PS4B+1p7rTF8QYy1IhCKD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QKM9AVMfSOXrFt+bqEn8ARZJWYV0AWa69oOzrKtYNRy5jd9fTGhQGk3+q48cPpyzSo6Y3Ob39hiscnAFguScVss6KDSsbHN59diIfTj/I8/+oKRQsk47MrEjuzafJhqG7151lVeXCd58+bYK1Apv5nrtvhEJQWPH8Miz6Ff6v/P7a8VXO+qtkX/IecmnUDuizuxoDNsI4xsPLexbk6MurNn+azSVzNoGfUDewe6dBHjylCtG3Gh76xIUYG5Xj2DuQ03N7PTs/mX3kH51E91PPQ7HHdKOssUdOjztzY+olP3RVBrU0Z+6UVesgxx8kX2Uz7S6G5RoRcjgncbSiENvAgIoYR81Bhfsnnd7jDX/MmNLPOx+Vh/in6mv07rXyP6f4qC5PmdSAAA", - "encoding": "ISO-8859-1", - "string": "" - }, - "headers": { - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "5370" - ], - "Content-Type": [ - "text/html" - ], - "Date": [ - "Sun, 06 May 2018 22:29:15 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "rur=FTW; Path=/", - "csrftoken=4UB7jYe3bNNO2CdbGhdk77G2faybK8Xz; expires=Sun, 05-May-2019 22:29:15 GMT; Max-Age=31449600; Path=/; Secure", - "mid=Wu-BuwAEAAFaEibX8_nD-5TEWMXd; expires=Sat, 01-May-2038 22:29:15 GMT; Max-Age=630720000; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language, Accept-Encoding" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/" - } - }, - { - "recorded_at": "2018-05-06T22:29:16", - "request": { - "body": { - "encoding": "utf-8", - "string": "username=xxx&password=INSTA_PASSWORD&queryParams=%7B%7D" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "51" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "csrftoken=4UB7jYe3bNNO2CdbGhdk77G2faybK8Xz; mid=Wu-BuwAEAAFaEibX8_nD-5TEWMXd; rur=FTW" - ], - "Host": [ - "www.instagram.com" - ], - "Origin": [ - "https://www.instagram.com" - ], - "Referer": [ - "https://www.instagram.com/" - ], - "X-CSRFToken": [ - "4UB7jYe3bNNO2CdbGhdk77G2faybK8Xz" - ], - "X-Instagram-AJAX": [ - "1" - ], - "X-Requested-With": [ - "XMLHttpRequest" - ] - }, - "method": "POST", - "uri": "https://www.instagram.com/accounts/login/ajax/" - }, - "response": { - "body": { - "encoding": null, - "string": "{\"authenticated\": false, \"user\": false, \"status\": \"ok\"}" - }, - "headers": { - "Access-Control-Allow-Credentials": [ - "true" - ], - "Access-Control-Allow-Origin": [ - "https://www.instagram.com" - ], - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "55" - ], - "Content-Type": [ - "application/json" - ], - "Date": [ - "Sun, 06 May 2018 22:29:16 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "csrftoken=4UB7jYe3bNNO2CdbGhdk77G2faybK8Xz; expires=Sun, 05-May-2019 22:29:16 GMT; Max-Age=31449600; Path=/; Secure", - "rur=FTW; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/accounts/login/ajax/" - } - } - ], - "recorded_with": "betamax/0.8.1" -} \ No newline at end of file diff --git a/tests/cassettes/test_session.test_session_functions.json b/tests/cassettes/test_session.test_session_functions.json new file mode 100644 index 0000000..455817f --- /dev/null +++ b/tests/cassettes/test_session.test_session_functions.json @@ -0,0 +1,206 @@ +{ + "http_interactions": [ + { + "recorded_at": "2018-05-06T22:36:21", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate, br" + ], + "Accept-Language": [ + "en-US" + ], + "Connection": [ + "keep-alive" + ] + }, + "method": "GET", + "uri": "https://www.instagram.com/" + }, + "response": { + "body": { + "base64_string": "H4sIAGWD71oC/7U8a3PbtrLf8ytYnDOpNKFlvkXSYe6kaXqaM22TaZLOuePjywGBpYSYAlgClO26/u93QFAyadNJWiXth4iLfWF3scDi4afffP/6xbv/ffPSWqtN9ezRU/2PVWG+yhBwZJEKS5khLo4+SIsLdVSJ1QroEeMWqRhwddQIodCzR5ZlWU/XgOmzpxtQ2CJr3EhQGWpVeRT3CB1S17xWqj6C31u2zdB/jt4/P3ohNjVWrKgAWURwBVxl6NXLDOgK0LNHt+SKqQqePXrFpcKrBm8ePT3uQXucO7I43kCGGlEIJQfMuWAbvALGKVzaFhe4IWu2hXuqGvKNKFgFRxdQHOG6PiK4xmNdr0A+QKrWsIEjIirRDPD/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vlizis7Y3OY3tlhsMrDFgmTcFgs6qHRsbPP5tVgI/XP+5599wUihZBx2ZWKHdm2OsdpGnwV1lRfXSd58OfYKVMpv5loWn6ik4PFjWOQ59Ev9/7n92wbXu6pt0R/73KQTjfviTizoDNsIIxvPbazFiVF39iSfVfpqAs2jfmDvQJcuYlwZqnUjLvQLFykqMI+xZzC34eZmdno2/9I7KJ/6wx4P/dWOOyWdZQo69PlbGx/RqTs/1NqUkV96kZcsQ5x8kf2UjwjdLSr0YkTwbkMppIEXASGUkI8a40uK13KHueYvbmSZo+ljfXD9TJ9l679d9P+pfbXly0gAAA==", + "encoding": "ISO-8859-1", + "string": "" + }, + "headers": { + "Cache-Control": [ + "private, no-cache, no-store, must-revalidate" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Language": [ + "en" + ], + "Content-Length": [ + "5398" + ], + "Content-Type": [ + "text/html" + ], + "Date": [ + "Sun, 06 May 2018 22:36:21 GMT" + ], + "Expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Set-Cookie": [ + "sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "rur=FTW; Path=/", + "csrftoken=IJ86ETcCuoG1TT7hHR2a28aADJ0jkeX8; expires=Sun, 05-May-2019 22:36:21 GMT; Max-Age=31449600; Path=/; Secure", + "mid=Wu-DZQAEAAFZY3ZDSdxsEHle2kSJ; expires=Sat, 01-May-2038 22:36:21 GMT; Max-Age=630720000; Path=/" + ], + "Strict-Transport-Security": [ + "max-age=86400" + ], + "Vary": [ + "Cookie, Accept-Language, Accept-Encoding" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://www.instagram.com/" + } + }, + { + "recorded_at": "2018-05-06T22:36:22", + "request": { + "body": { + "encoding": "utf-8", + "string": "username=INSTA_USERNAME&password=INSTA_PASSWORD&queryParams=%7B%7D" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate, br" + ], + "Accept-Language": [ + "en-US" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "63" + ], + "Content-Type": [ + "application/x-www-form-urlencoded" + ], + "Cookie": [ + "csrftoken=IJ86ETcCuoG1TT7hHR2a28aADJ0jkeX8; mid=Wu-DZQAEAAFZY3ZDSdxsEHle2kSJ; rur=FTW" + ], + "Host": [ + "www.instagram.com" + ], + "Origin": [ + "https://www.instagram.com" + ], + "Referer": [ + "https://www.instagram.com/" + ], + "X-CSRFToken": [ + "IJ86ETcCuoG1TT7hHR2a28aADJ0jkeX8" + ], + "X-Instagram-AJAX": [ + "1" + ], + "X-Requested-With": [ + "XMLHttpRequest" + ] + }, + "method": "POST", + "uri": "https://www.instagram.com/accounts/login/ajax/" + }, + "response": { + "body": { + "encoding": null, + "string": "{\"authenticated\": true, \"user\": true, \"userId\": \"7326637304\", \"oneTapPrompt\": false, \"status\": \"ok\"}" + }, + "headers": { + "Access-Control-Allow-Credentials": [ + "true" + ], + "Access-Control-Allow-Origin": [ + "https://www.instagram.com" + ], + "Cache-Control": [ + "private, no-cache, no-store, must-revalidate" + ], + "Connection": [ + "keep-alive" + ], + "Content-Language": [ + "en" + ], + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json" + ], + "Date": [ + "Sun, 06 May 2018 22:36:22 GMT" + ], + "Expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Set-Cookie": [ + "target=\"\"; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "csrftoken=W9iqM3bvLZXrjkr005DweBZkRKW9IotG; Domain=.instagram.com; expires=Sun, 05-May-2019 22:36:22 GMT; Max-Age=31449600; Path=/; Secure", + "shbid=15780; Domain=.instagram.com; expires=Sun, 13-May-2018 22:36:22 GMT; Max-Age=604800; Path=/", + "shbts=1525646182.0883646; Domain=.instagram.com; expires=Sun, 13-May-2018 22:36:22 GMT; Max-Age=604800; Path=/", + "rur=FTW; Domain=.instagram.com; Path=/", + "ds_user_id=7326637304; Domain=.instagram.com; expires=Sat, 04-Aug-2018 22:36:22 GMT; Max-Age=7776000; Path=/", + "sessionid=IGSCcc7461f4f5c63db5db8d77178bdbb1eca168cdd272d6865630abaf37bbcc5471%3Ar1LeeQ0IWCZ2bOKmrTbiOEQUzVBKsh94%3A%7B%22_auth_user_id%22%3A7326637304%2C%22_auth_user_backend%22%3A%22accounts.backends.CaseInsensitiveModelBackend%22%2C%22_auth_user_hash%22%3A%22%22%2C%22_platform%22%3A4%2C%22_token_ver%22%3A2%2C%22_token%22%3A%227326637304%3AmzE1uB5fBvixoisAFTr9uMV2p8P7aWrR%3A868d566ab8578d02fdebb775510e013fdb466a04c707ba76a657f8bcd66ed10a%22%2C%22last_refreshed%22%3A1525646182.0889594555%7D; Domain=.instagram.com; expires=Sat, 04-Aug-2018 22:36:22 GMT; HttpOnly; Max-Age=7776000; Path=/; Secure", + "csrftoken=\"\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "mid=Wu-DZQAEAAFZY3ZDSdxsEHle2kSJ; Domain=.instagram.com; Path=/", + "mid=\"\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "rur=\"\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", + "mcd=3; Domain=.instagram.com; Path=/" + ], + "Strict-Transport-Security": [ + "max-age=86400" + ], + "Vary": [ + "Cookie, Accept-Language" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://www.instagram.com/accounts/login/ajax/" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/cassettes/test_session.test_session_functions[logged].json b/tests/cassettes/test_session.test_session_functions[logged].json deleted file mode 100644 index 4ac422d..0000000 --- a/tests/cassettes/test_session.test_session_functions[logged].json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-05-06T22:29:22", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ] - }, - "method": "GET", - "uri": "https://www.instagram.com/" - }, - "response": { - "body": { - "base64_string": "H4sIAMGB71oC/7U8a3fbNrLf8ytY7B5XOqFlvkXSYfbktbvdbRvfJunZva4vDwgMJcQUwBKgbNf1f78HJCWTNu2kZZJ8MDkvDGYGAwwI6Nk3r9++ev/fkzfGWm2K50+e6T9GgfkqQcCRQQosZYK4OPwoDS7UYSFWK6CHjBukYMDVYSWEQs+fGIZhPFsDps+fbUBhg6xxJUElqFb5YdgRNEQNeq1UeQi/1myboP8cfnhx+EpsSqxYVgAyiOAKuErQd28SoCtAz5/csiumCnj+5DsuFV5VePPk2VEH2tPcaYvjDSSoEplQsiecC7bBK2CcwqVpcIErsmZbuKdqy74RGSvg8AKyQ1yWhwSXeKjrFcgHWNUaNnBIRCGqHv1frObfPR5GE7RlcFGKSqFOwu37nv2CUbVOKGwZgcPmxTRqCdWhJLjQqiVcmAbjTDFcNEBIbNPYMM429aYHwJdDwK6tw5yphIgtVD0Ve34oGD83KigStMGc5SAVMtYV5Ak6oljhox108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9r4xGdms95Wps8cHMncKKlj6Mvsp/ySKO7RYVejAjebCj51HMCIIQS8qgxvmTzut1+rvmDG1ntl+Ij/R35uf60rH9K6P8B4mrf0lpIAAA=", - "encoding": "ISO-8859-1", - "string": "" - }, - "headers": { - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "5333" - ], - "Content-Type": [ - "text/html" - ], - "Date": [ - "Sun, 06 May 2018 22:29:21 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "rur=FTW; Path=/", - "csrftoken=8rZOD1inSBEtxagEp9uhkNQjUJEle34B; expires=Sun, 05-May-2019 22:29:21 GMT; Max-Age=31449600; Path=/; Secure", - "mid=Wu-BwQAEAAEGiJzlhBilUCZ-NnDh; expires=Sat, 01-May-2038 22:29:21 GMT; Max-Age=630720000; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language, Accept-Encoding" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/" - } - }, - { - "recorded_at": "2018-05-06T22:29:23", - "request": { - "body": { - "encoding": "utf-8", - "string": "username=INSTA_USERNAME&password=INSTA_PASSWORD&queryParams=%7B%7D" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "63" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "csrftoken=8rZOD1inSBEtxagEp9uhkNQjUJEle34B; mid=Wu-BwQAEAAEGiJzlhBilUCZ-NnDh; rur=FTW" - ], - "Host": [ - "www.instagram.com" - ], - "Origin": [ - "https://www.instagram.com" - ], - "Referer": [ - "https://www.instagram.com/" - ], - "X-CSRFToken": [ - "8rZOD1inSBEtxagEp9uhkNQjUJEle34B" - ], - "X-Instagram-AJAX": [ - "1" - ], - "X-Requested-With": [ - "XMLHttpRequest" - ] - }, - "method": "POST", - "uri": "https://www.instagram.com/accounts/login/ajax/" - }, - "response": { - "body": { - "encoding": null, - "string": "{\"authenticated\": true, \"user\": true, \"userId\": \"7326637304\", \"oneTapPrompt\": false, \"status\": \"ok\"}" - }, - "headers": { - "Access-Control-Allow-Credentials": [ - "true" - ], - "Access-Control-Allow-Origin": [ - "https://www.instagram.com" - ], - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/json" - ], - "Date": [ - "Sun, 06 May 2018 22:29:23 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "target=\"\"; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "csrftoken=BKEHcGcK7294bbZ063dT8XUisFTMlKTE; Domain=.instagram.com; expires=Sun, 05-May-2019 22:29:23 GMT; Max-Age=31449600; Path=/; Secure", - "shbid=15780; Domain=.instagram.com; expires=Sun, 13-May-2018 22:29:23 GMT; Max-Age=604800; Path=/", - "shbts=1525645763.026354; Domain=.instagram.com; expires=Sun, 13-May-2018 22:29:23 GMT; Max-Age=604800; Path=/", - "rur=FTW; Domain=.instagram.com; Path=/", - "ds_user_id=7326637304; Domain=.instagram.com; expires=Sat, 04-Aug-2018 22:29:23 GMT; Max-Age=7776000; Path=/", - "sessionid=IGSC03546d3f8c3499de7b6508103cf5c3c644714bb414b8898aaf8507acfb80ae89%3A5WTckxyEQq7YWZFWB6rC6uVdTE39bDtY%3A%7B%22_auth_user_id%22%3A7326637304%2C%22_auth_user_backend%22%3A%22accounts.backends.CaseInsensitiveModelBackend%22%2C%22_auth_user_hash%22%3A%22%22%2C%22_platform%22%3A4%2C%22_token_ver%22%3A2%2C%22_token%22%3A%227326637304%3A7FdJmhJyZqsUaSA0tth40uvdkLrLJi3c%3A647039ff25f90e97ca2f5bd90c0880e17033061173b943511eaf9fa0cff66304%22%2C%22last_refreshed%22%3A1525645763.0270442963%7D; Domain=.instagram.com; expires=Sat, 04-Aug-2018 22:29:23 GMT; HttpOnly; Max-Age=7776000; Path=/; Secure", - "csrftoken=\"\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "mid=Wu-BwQAEAAEGiJzlhBilUCZ-NnDh; Domain=.instagram.com; Path=/", - "mid=\"\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "rur=\"\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "mcd=3; Domain=.instagram.com; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/accounts/login/ajax/" - } - } - ], - "recorded_with": "betamax/0.8.1" -} \ No newline at end of file diff --git a/tests/cassettes/test_session.test_session_functions[unlogged].json b/tests/cassettes/test_session.test_session_functions[unlogged].json deleted file mode 100644 index ab2437f..0000000 --- a/tests/cassettes/test_session.test_session_functions[unlogged].json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "http_interactions": [ - { - "recorded_at": "2018-05-06T22:29:24", - "request": { - "body": { - "encoding": "utf-8", - "string": "" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ] - }, - "method": "GET", - "uri": "https://www.instagram.com/" - }, - "response": { - "body": { - "base64_string": "H4sIAMOB71oC/7U8a3fbNrLf8ytY7B5HOqFlvkXSYfakaXrbu02TbZLeu+v68oDAUEJMASwBynZd//d7QFCyaNNOUiXth4jzwmBmMMDg4afffPf6xbt/v3lpLdWqevboqf7HqjBfZAg4skiFpcwQF4cfpMWFOqzEYgH0kHGLVAy4OmyEUOjZI8uyrKdLwPTZ0xUobJElbiSoDLWqPIx7go6oQy+Vqg/h95atM/S/h++fH74QqxorVlSALCK4Aq4y9OPLDOgC0LNHN+yKqQqePfqRS4UXDV49enrUg7Y0t9rieAUZakQhlNwRzgVb4QUwTuHCtrjADVmyNdxR1bCvRMEqODyH4hDX9SHBNR7qegnyHla1hBUcElGJZof+b0733x0eRjO0ZnBei0ahXsLN95b9nFG1zCisGYHD7sO2WgnNoSS40qplXNgW40wxXHVAyFzbWjHOVu1qB4AvhoBNW4clUxkRa2h2VNzxQ8X4mdVAlaEV5qwEqZC1bKDM0BHFCh9toLMPUnA05p2NEMOlI0KmR0eLBtfLGdu4d0bECpl26gaI4ByItkMjpBQNWzA+pt2YmnUDlcB0q6VUWDFyVLScViCPCizh6CfMKeOLN3gBsw/yKCzAD8AJQoiK2QeJLCwzJEnDaoUsdVlr58KFOvqA13gD3tEsQ5gLfrkSrUTW0W4QG+J7RNx0aFK2nCgm+GRqXe3YzbLWuLGoIC8rWAFXVqY/Wv1ztvnRo47vsHVD+peXVmZxOLd+gcX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BpQecmu9KQOjFJaBm4vkmqpef62CdJUgSFSalxiKOYBh4tcZ9AQ0yTxKHzALzCZE2CS0+//8EhTUyyjAgNnDh2Y0JLkxu9eeF6ZVRgxytNKkx8Urp+EBdB4pjkNw8DJ0xIGfm+a5IfAVrgOHJd8CKT9XzH8aO4TMCJPZPkihAcP0nceeKUJqkFvuuGcUBpAJ5JYvMoCX0nBBLjxCQvpyBFgp0kJOCY3EUDWs4dZ+5AOTepi4YUe2XplE7cpy1awNzDENIg9k3GKgrPi+f6zUowN6kqKQNMvbIgXkxNavLLsKROGZYujU0q8gNCitgpCyg8k4EKjxKfFCQKdCTorAOJ4/tuRJxyHpgcg0O3pD4NvaKkJtN4rheH4dwrfBKYZBNQCMIiKrxQx4/ONl7sxIlHCAZd2uqEkyReQoMkpL5fmITj+UUZgutDofulc44W4AckDgjEJu9gAhAX4Do+lCbpOBHgqHTLxCmISTZuFDh+MvepR+Muw3TZBXWrb5JJ0G/n9eJ3Utp6+Tu9KVbKyfSKbZ6MZ/qXnsSz7sCHVICbDSeZHu/UEs43WYYPDrri6sQ9ndw8GEb6uaZ+v0uWLT+z0BN4gqwSswroDE11bQen2VowajnT676+GFGgtBv9sh44fbFkFZ2wqc2vbTFbZWCLGcm4LWZ0p9Kxsc2nV2Im9M/pn3/2BSOFknHYlIkd2ZU5xmobvYHWVV5cJ3nz5dgLUCm/nuq2+EglBQcHMMtz6Jf6/7j52wZXm6pt1h/7XKcjyG1xJ2Z0gm2EkY2nNtbNiUF3tiyfVPpqBi2jvmfvQJcuYlgZqmUjzvULFykqMI+xJzC14fp6cnI6/dI7KB/7wx73/dWOWyWdZQo69OlbGw/o1J0fam3KyC+9yEvmIU6+yH7KA41uFhV6MSJ4t6EU0sCLgBBKyIPG+JLN63Z3c81nbmSZo+kjfXD9TJ9l679d9P80S60Sy0gAAA==", - "encoding": "ISO-8859-1", - "string": "" - }, - "headers": { - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Encoding": [ - "gzip" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "5398" - ], - "Content-Type": [ - "text/html" - ], - "Date": [ - "Sun, 06 May 2018 22:29:23 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "sessionid=; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "sessionid=; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "rur=FTW; Path=/", - "csrftoken=ACTzKj5Kod25jbYM9xQqN6McDO5jvZBH; expires=Sun, 05-May-2019 22:29:23 GMT; Max-Age=31449600; Path=/; Secure", - "mid=Wu-BwwAEAAH8-Vuaa6dwRHjOPplV; expires=Sat, 01-May-2038 22:29:23 GMT; Max-Age=630720000; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language, Accept-Encoding" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/" - } - }, - { - "recorded_at": "2018-05-06T22:29:25", - "request": { - "body": { - "encoding": "utf-8", - "string": "username=INSTA_USERNAME&password=INSTA_PASSWORD&queryParams=%7B%7D" - }, - "headers": { - "Accept": [ - "*/*" - ], - "Accept-Encoding": [ - "gzip, deflate, br" - ], - "Accept-Language": [ - "en-US" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "63" - ], - "Content-Type": [ - "application/x-www-form-urlencoded" - ], - "Cookie": [ - "csrftoken=ACTzKj5Kod25jbYM9xQqN6McDO5jvZBH; mid=Wu-BwwAEAAH8-Vuaa6dwRHjOPplV; rur=FTW" - ], - "Host": [ - "www.instagram.com" - ], - "Origin": [ - "https://www.instagram.com" - ], - "Referer": [ - "https://www.instagram.com/" - ], - "X-CSRFToken": [ - "ACTzKj5Kod25jbYM9xQqN6McDO5jvZBH" - ], - "X-Instagram-AJAX": [ - "1" - ], - "X-Requested-With": [ - "XMLHttpRequest" - ] - }, - "method": "POST", - "uri": "https://www.instagram.com/accounts/login/ajax/" - }, - "response": { - "body": { - "encoding": null, - "string": "{\"authenticated\": true, \"user\": true, \"userId\": \"7326637304\", \"oneTapPrompt\": false, \"status\": \"ok\"}" - }, - "headers": { - "Access-Control-Allow-Credentials": [ - "true" - ], - "Access-Control-Allow-Origin": [ - "https://www.instagram.com" - ], - "Cache-Control": [ - "private, no-cache, no-store, must-revalidate" - ], - "Connection": [ - "keep-alive" - ], - "Content-Language": [ - "en" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/json" - ], - "Date": [ - "Sun, 06 May 2018 22:29:24 GMT" - ], - "Expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Set-Cookie": [ - "target=\"\"; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "csrftoken=c2BoRi5wFiu0NA5l41mKnvX7I3fIqQyt; Domain=.instagram.com; expires=Sun, 05-May-2019 22:29:24 GMT; Max-Age=31449600; Path=/; Secure", - "shbid=15780; Domain=.instagram.com; expires=Sun, 13-May-2018 22:29:24 GMT; Max-Age=604800; Path=/", - "shbts=1525645764.8773112; Domain=.instagram.com; expires=Sun, 13-May-2018 22:29:24 GMT; Max-Age=604800; Path=/", - "rur=FTW; Domain=.instagram.com; Path=/", - "ds_user_id=7326637304; Domain=.instagram.com; expires=Sat, 04-Aug-2018 22:29:24 GMT; Max-Age=7776000; Path=/", - "sessionid=IGSC0e8b0d33da2f3cb99026db25714a29cf15fb1364ee3ba96a50f41953d201ac3d%3AM8AGcSmFPXTKcvDxDCXTqrxnr4HYWwsO%3A%7B%22_auth_user_id%22%3A7326637304%2C%22_auth_user_backend%22%3A%22accounts.backends.CaseInsensitiveModelBackend%22%2C%22_auth_user_hash%22%3A%22%22%2C%22_platform%22%3A4%2C%22_token_ver%22%3A2%2C%22_token%22%3A%227326637304%3AhBPdXwdnLxpKtzvlNqzBUMXRyr3bLRjI%3A0a7675a106f08cff3d809c51037494c8f03c6f825dd77bb108516a771ef0114b%22%2C%22last_refreshed%22%3A1525645764.8780198097%7D; Domain=.instagram.com; expires=Sat, 04-Aug-2018 22:29:24 GMT; HttpOnly; Max-Age=7776000; Path=/; Secure", - "csrftoken=\"\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "mid=Wu-BwwAEAAH8-Vuaa6dwRHjOPplV; Domain=.instagram.com; Path=/", - "mid=\"\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "rur=\"\"; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/", - "mcd=3; Domain=.instagram.com; Path=/" - ], - "Strict-Transport-Security": [ - "max-age=86400" - ], - "Vary": [ - "Cookie, Accept-Language" - ] - }, - "status": { - "code": 200, - "message": "OK" - }, - "url": "https://www.instagram.com/accounts/login/ajax/" - } - } - ], - "recorded_with": "betamax/0.8.1" -} \ No newline at end of file diff --git a/tests/conftest.py b/tests/conftest.py index 35aab6d..6397e88 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -42,7 +42,7 @@ def logged(request): @pytest.fixture -def recorder(logged, monkeypatch, username, password, record_mode): +def recorder(monkeypatch, username, password, record_mode): Betamax.register_serializer(pretty_json.PrettyJSONSerializer) cassete_dir = Path(f'tests/cassettes/') cassete_dir.mkdir(parents=True, exist_ok=True)