anki/pylib/tests
Damien Elmes 3d0ddc8539 make flag changes in the reviewer undoable
This splits update_card() into separate undoable/non-undoable ops
like the change to notes in b4396b94abdeba3347d30025c5c0240d991006c9

It means that actions get a blanket 'Update Card' description - in the
future we'll probably want to either add specific actions to the backend,
or allow an enum or string to be passed in to describe the op.

Other changes:
- card.flush() can no longer be used to add new cards. Card creation
is only supposed to be done in response to changes in a note's fields,
and this functionality was only exposed because the card generation
hadn't been migrated to the backend at that point. As far as I'm aware,
only Arthur's "copy notes" add-on used this functionality, and that should
be an easy fix - when the new note is added, the associated cards will
be generated, and they can then be retrieved with note.cards()
- tidy ups/PEP8
2021-03-10 11:53:27 +10:00
..
support tweaking the folder names again 2020-01-03 07:48:38 +10:00
__init__.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
run_format.py Update mypy and black format check to python version 3.8 2020-11-11 09:24:28 +00:00
run_mypy.py initial Bazel conversion 2020-11-01 14:26:58 +10:00
run_pylint.py initial Bazel conversion 2020-11-01 14:26:58 +10:00
run_pytest.py implement fuzzing 2021-02-22 21:31:53 +10:00
shared.py fix errorsAfterMidnight 2020-04-08 10:05:19 +10:00
test_cards.py make backend instance on col private 2021-01-31 18:56:16 +10:00
test_collection.py undo support for bulk tag add/remove 2021-03-10 11:47:53 +10:00
test_decks.py move drag/drop deck logic to backend 2021-01-31 13:46:31 +10:00
test_exporting.py rework v2 scheduler upgrade; drop downgrade 2021-02-21 15:50:41 +10:00
test_find.py undo support for bulk tag add/remove 2021-03-10 11:47:53 +10:00
test_flags.py make flag changes in the reviewer undoable 2021-03-10 11:53:27 +10:00
test_importing.py make mark toggling undoable 2021-03-10 11:53:27 +10:00
test_latex.py remove print statement from unit tests 2020-11-18 13:56:44 +10:00
test_media.py Merge pull request #793 from nwwt/object-audio-tags-support 2020-11-11 10:33:31 +10:00
test_models.py make mark toggling undoable 2021-03-10 11:53:27 +10:00
test_sched2021.py use different approach to running tests twice 2021-03-01 12:47:39 +10:00
test_schedv1.py make flag changes in the reviewer undoable 2021-03-10 11:53:27 +10:00
test_schedv2.py switch to 4 buttons when previewing in test scheduler 2021-03-01 23:47:00 +10:00
test_stats.py d->col in tests 2020-07-17 06:58:32 +02:00
test_template.py d->col in tests 2020-07-17 06:58:32 +02:00
test_undo.py commit immediately when there's no active checkpoint 2021-03-10 11:47:53 +10:00