Commit Graph

14 Commits

Author SHA1 Message Date
Austin Siew
fc63bdaa17 removed unnecessary comments in test_models.py 2023-04-13 20:36:07 -06:00
Austin Siew
accbc53e5d added modelTemplateRename, modelTemplateReposition, modelTemplateAdd, modelTemplateRemove 2023-04-13 19:30:49 -06:00
Austin Siew
a96e10e840 made the test more precise by checking the anki version 2022-12-28 18:54:22 -07:00
Austin Siew
69baea296a added tests & documentation, removed dead code 2022-12-28 18:37:05 -07:00
introt
336dc8bb31 Added modelFieldDescriptions
Similar to modelFieldNames, returns a list of
note field decriptions (the text seen in the gui
editor when the field is empty)
2022-11-26 14:56:34 +02:00
Austin Siew
83cc55769b fixed function styling issue in test case 2022-08-16 20:11:44 -06:00
Austin Siew
8ec078393a removed the bulk action in favor of the already existing 'multi' action 2022-08-16 19:35:32 -06:00
Austin Siew
ebdca1db6b Added model field name api points and skeleton documentation to README 2022-08-16 19:23:09 -06:00
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
Venkata Ramana
131a1c7cfc
Added findAndReplaceInModels (#228)
* added findAndReplaceInModels api call

* added documentation for findAndReplaceInModels

* added findAndReplaceInModels api call

* updatd findAndReplaceInModels function

* added unit test for findAndReplaceInModels in models

* updated findAndReplaceInModels

* added unit test for findAndReplaceInModels

* removed 'all_models' in findAndReplaceInModels
2021-02-26 21:17:51 -08:00
24dd22145e Fix tests for Python3 2020-01-05 11:24:13 -08:00
Ben Kogan
be0247ae2f Add get and update endpoints for model templates and styling 2019-10-27 16:55:26 -04:00
c-okelly
bbcb29ea43 Update changes from PR and add documentation 2019-03-01 17:44:33 +00:00
9eabc14b7c add model tests 2018-05-08 17:41:27 -07:00