Commit Graph

13 Commits

Author SHA1 Message Date
joo
66a0603acf Fix various problems in minecraft.authentication and its tests:
- Return value of _make_request() is treated as a requests.Request, when it is in fact a requests.Response.
- Some tests in test_authentication use assertRaises() incorrectly, resulting in testing code that never gets run.
- Other miscellaneous errors exposed by the above changes.

Additionally:
- YggdrasilError instances now have fields with specific error information, and _raise_from_response() populates them. (This will be useful for later changes.)
2017-03-31 12:59:43 +01:00
Ammar Askar
89ca73532a
Fully cover authentication module 2016-12-19 06:57:45 -05:00
Ammar Askar
9aa369c7da
Fix outdated documentation 2016-12-19 05:26:12 -05:00
Ammar Askar
56b06ca80f Make validate treat HTTP code 204 as a success.
Fixes #54
2016-11-17 14:34:14 -05:00
Jeppe Klitgaard
971506533c id is a reserved name, even as an attribute. We now use id_ instead 2015-04-06 15:44:51 +02:00
Jeppe Klitgaard
fde8286e7e Things look slightly more legit... 2015-04-06 15:27:42 +02:00
Jeppe Klitgaard
17e89f23c8 Fixed typo, explicitly stated that number was status code. 2015-04-05 22:14:38 +02:00
Ammar Askar
d3917b42a4 split up pylint into errors and warning runners 2015-04-03 03:13:22 +05:00
Ammar Askar
c353d8bb86 Address more pylint and py3 compatibility problems 2015-04-03 02:25:34 +05:00
Ammar Askar
b37c095039 Fix connection to work with new authentication module 2015-04-02 22:02:08 +05:00
Jeppe Klitgaard
c1e7960165 Finished up authentication.py, I hope. Still needs tests and documentation 2015-04-02 00:09:52 +02:00
Jeppe Klitgaard
6cf6110bc5 Updated authentication.py and made it work with the rest of pyCraft 2015-04-01 23:38:10 +02:00
Jeppe Klitgaard
8e40122c24 Moved authentication out of networking submodule. 2015-04-01 17:43:16 +02:00