Commit Graph

18 Commits

Author SHA1 Message Date
oakkitten
8f1a2cc5fd Convert all tests to pytest
Previously, tests were run against Anki launched by user.

Now,
 * most tests run against isolated Anki in current process;
 * tests in `test_server.py` launch another Anki in a separate process
   and run a few commands to test the server;
 * nearly all tests were preserved in the sense that
   what was being tested is tested still.
   A few tests in `test_graphical.py` are skipped due to
   a problem with the method tests, see the comments;
 * tests can be run:
   * In a single profile, using --no-tear-down-profile-after-each-test;
   * In a single app instance, but with the profile being torn down
     after each test--default;
   * In separate processes, using --forked.
2022-04-11 02:26:44 +01:00
a8273d0e38 Fix tests 2021-01-18 21:03:27 -08:00
Julian Müller
ce0cc7dce3
some additional actions (#185)
* implement needed actions

* add documentation and tests for cardInfo, updateCompleteDeck, reloadCollection, cardReviews, getLatestReviewID, insertReviews

Co-authored-by: Julian Müller <julian.mueller@stud-mail.uni-wuerzburg.de>
2020-07-12 12:53:31 -07:00
Scott Noyes
faba701251
Collection stats (#166)
* Add endpoint to retrieve collection stats report

* Create separate test for statistics

* Add test for collectionStats

* Fixed typo

* Change endpoint name to use a verb

* Change name to getCollectionStatsHTML
2020-05-03 12:06:43 -07:00
Alex Yatskov
a779fa673f
Merge pull request #159 from snoyes/getProfiles
Add getProfiles action
2020-05-01 12:44:25 -07:00
Scott Noyes
204268b031 Add unit test for importPackage 2020-05-01 13:55:30 -05:00
Scott Noyes
6723332224 Add unit test for getProfiles and loadProfile 2020-05-01 13:38:23 -05:00
0f8b402d73 Update move export to misc, fix return 2020-04-21 18:22:10 -07:00
yakrider
f280a2b8f9 add api to get number of cards reviewed in the current day
partly addresses issue raised in #117
2020-04-19 01:38:03 -04:00
98566ca8ba Cleanup 2020-01-05 16:24:20 -08:00
Charles Henry
5768a28446 Update documentation and unit tests to use version 6 + include new template field in example output of guiCurrentCard 2018-05-25 13:31:32 +01:00
a7a03ab1b9 unit test cleanup for misc 2018-05-08 15:18:21 -07:00
e63f2116cd cleanup 2018-05-07 14:34:41 -07:00
acad72732f work on tests 2018-05-06 20:21:59 -07:00
d33b4e0dc7 wip 2018-05-06 19:01:24 -07:00
fb37ac9f8a wip 2018-05-06 18:45:56 -07:00
Anže Bertoncelj
612afa75a1 Update API version check 2017-12-22 22:42:49 +01:00
tomasgodoi
86d6ff8b63 Including travis tests. 2017-08-29 01:21:32 -03:00