anki-connect/tests
oakkitten bffbb051f2 Produce a better error in case of malformed JSON
$ curl localhost:8777 -X POST -i -d '{"action": "version", "version": 6},' && echo ␄
HTTP/1.1 200 OK
Content-Type: text/json
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Headers: *
Content-Length: 67

{"result": null, "error": "Extra data: line 1 column 36 (char 35)"}␄

$ curl localhost:8777 -X POST -i -d '{"action": "version", "version": 6},' -H "Origin: foo" && echo ␄
HTTP/1.1 403 Forbidden
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Headers: *

␄
2022-05-11 20:32:08 +01:00
..
conftest.py Explicitly require Anki >= 2.1.45 2022-04-26 15:22:06 +01:00
test_cards.py Convert all tests to pytest 2022-04-11 02:26:44 +01:00
test_decks.py Explicitly require Anki >= 2.1.45 2022-04-26 15:22:06 +01:00
test_edit.py Edit dialog: fix editor buttons on Anki 2.1.50 2022-04-26 15:22:06 +01:00
test_graphical.py Edit dialog: make browser button show all history 2022-04-14 01:55:41 +01:00
test_media.py Convert all tests to pytest 2022-04-11 02:26:44 +01:00
test_misc.py Tests: make tests pass for Anki 2.1.50 (Qt5) 2022-04-26 15:22:06 +01:00
test_models.py Convert all tests to pytest 2022-04-11 02:26:44 +01:00
test_notes.py Convert all tests to pytest 2022-04-11 02:26:44 +01:00
test_server.py Produce a better error in case of malformed JSON 2022-05-11 20:32:08 +01:00
test_stats.py Convert all tests to pytest 2022-04-11 02:26:44 +01:00