anki/pylib/tests
Henrik Giesel a8d4774cdb
Add _raw methods for all methods in the backend (#1594)
* Add _bytes methods for all methods in the backend

Expose get_note in qt/aqt/mediasrv.py

* Satisfy formatter

* Rename _bytes function to _raw and have them bytes as input

* Fix backend generation

* Use lib/proto/deckOptions in deck-options

* Add exposed_backend to qt/aqt/mediasrv.py

* Move some more backend methods to exposed_backend_list

* Use protobufjs for congrats and i18n

* Use protobufjs for completeTag

* Use protobufjs services in change-notetype

* Reorder post handlers in alphabetical manner

* Satisfy tests

* Remove unused collection methods

* Rename access_backend to raw_backend_request

* Use _vendor.stringcase instead of creating a new function

* Remove SKIP_UNROLL_OUTPUT

* Directly call _run_command in non _raw methods

* Remove TranslateString, ChangeNotetype and CompleteTag from SKIP_UNROLL_INPUT

* Remove UpdateDeckConfigs from SKIP_UNROLL_INPUT

* Remove ChangeNotetype from SKIP_UNROLL_INPUT

* Remove SKIP_UNROLL_INPUT

* Fix typing issue with translate_string

- Adds typing support for Protobuf maps in genbackend.py

* Do not emit convenience method for protobuf TranslateString
2022-01-21 21:32:39 +10:00
..
support tweaking the folder names again 2020-01-03 07:48:38 +10:00
__init__.py replace the old stripHTML() methods with the backend implementation 2021-10-01 23:15:45 +10:00
run_format.py bump minimum Python to 3.9 2021-10-04 15:05:15 +10:00
run_mypy.py update to latest rules_python 2022-01-15 16:16:33 +10:00
run_pylint.py update Python deps 2021-10-02 23:52:23 +10:00
run_pytest.py add missing copyright headers to *.py 2021-04-13 18:45:35 +10:00
shared.py move proto files into separate py_library in same namespace 2021-07-11 14:51:25 +10:00
test_cards.py PEP8 collection.py 2021-06-27 15:12:22 +10:00
test_collection.py update platform checks (eg isWin -> is_win) + devMode 2021-11-25 09:06:16 +10:00
test_decks.py PEP8 collection.py 2021-06-27 15:12:22 +10:00
test_exporting.py move proto files into separate py_library in same namespace 2021-07-11 14:51:25 +10:00
test_find.py PEP8 for rest of pylib (#1451) 2021-10-25 14:50:13 +10:00
test_flags.py PEP8 collection.py 2021-06-27 15:12:22 +10:00
test_importing.py Remove redundant camelcase aliases (#1509) 2021-11-26 12:29:48 +10:00
test_latex.py apply some f-string updates via flynt 2021-10-02 23:52:02 +10:00
test_media.py PEP8 for rest of pylib (#1451) 2021-10-25 14:50:13 +10:00
test_models.py update platform checks (eg isWin -> is_win) + devMode 2021-11-25 09:06:16 +10:00
test_sched2021.py use different approach to running tests twice 2021-03-01 12:47:39 +10:00
test_schedv2.py Make Hard use current step's interval if it's not the first one (#1561) 2021-12-16 22:02:13 +10:00
test_stats.py Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
test_template.py PEP8 cards.py 2021-06-27 12:12:23 +10:00
test_undo.py PEP8 collection.py 2021-06-27 15:12:22 +10:00