Closed niklas-heer closed 6 years ago
Oh why does the test fail?
$ make test
flake8 pytodoist
python -m pytodoist.test.test_api
............F..
======================================================================
FAIL: test_register_success (__main__.TodoistAPITest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/Garee/pytodoist/pytodoist/test/test_api.py", line 53, in test_register_success
self.assertEqual(response.status_code, _HTTP_OK)
AssertionError: 400 != 200
Has Todoist changed their API?
Sometimes the tests are flakey as it depends on the Todoist API playing nicely. I don't think there is anything wrong. Thanks for the contribution.
I'm using Visual Studio Code. I thought to rip this commit out of my other contribution, so that you can use it if you like without my other contribution. :)