Commit Graph

11 Commits

Author SHA1 Message Date
Ammar Askar
6adefa8c75 Add test for new invalidate_previous functionality 2019-01-04 19:59:45 -05:00
joo
0ec2398fb4 Fix: test_authenticate_wrong_credentials is not marked as an Internet test. 2018-01-13 02:37:28 +00:00
joo
bfaabcad58 Increase maxDiff for test_authenticate_wrong_credentials. 2018-01-13 01:57:59 +00:00
joo
979468b4f1 test_authenticate_wrong_credentials: compare exception string instead of yggdrasil_message, so failure message is more useful in case the latter is None. 2018-01-06 19:25:55 +00:00
joo
3f4571d9e9 Update testing configuration:
(1) Add py35 job to Travis.
(2) To address issue #57: run tests that connect to Mojang's auth server exactly once, during the py35 job.
(3) Measure coverage exactly once, during the py35 job; always submit the result to coveralls.
(4) Fix miscellaneous errors in generate_travis_yml.py.
2017-05-19 11:58:14 +01:00
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
10fb291752
Add some additional tests for the authentication module 2016-12-19 06:39:01 -05:00
joo
37a9bb66f1 Fix test failures caused by new flake8 version. 2016-11-15 00:02:02 +00:00
Jeppe Klitgaard
ca81f7685a Moved tests around for more logical order. Made tests for Profile object. 2015-04-07 20:07:47 +02:00
Jeppe Klitgaard
c34d30566f Made some tests for authentication. Still many tests to be made 2015-04-02 00:11:14 +02:00