diff options
Diffstat (limited to '.ai/scripts/tests/test_apkg_to_orgdrill.py')
| -rw-r--r-- | .ai/scripts/tests/test_apkg_to_orgdrill.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.ai/scripts/tests/test_apkg_to_orgdrill.py b/.ai/scripts/tests/test_apkg_to_orgdrill.py index adffef0..6a95ea4 100644 --- a/.ai/scripts/tests/test_apkg_to_orgdrill.py +++ b/.ai/scripts/tests/test_apkg_to_orgdrill.py @@ -264,7 +264,7 @@ def test_round_trip_matches_forward_parse_tuples(conv, forward, tmp_path): "** Capital of France? :drill:\n" "Paris.\n" ) - tuples = forward.parse(original) # [(front, back_html, tag), ...] + tuples = forward.parse(original) # [(front, back_html, anki_tags), ...] assert len(tuples) == 2 apkg = tmp_path / "rt.apkg" @@ -272,7 +272,9 @@ def test_round_trip_matches_forward_parse_tuples(conv, forward, tmp_path): apkg, decks={20: "RT Deck"}, models={9: ["Front", "Back"]}, - notes=[(100 + i, 9, [f, b], t) for i, (f, b, t) in enumerate(tuples)], + # anki_tags is a list; the apkg tags field is space-joined. + notes=[(100 + i, 9, [f, b], " ".join(tags)) + for i, (f, b, tags) in enumerate(tuples)], cards=[(100 + i, 20) for i in range(len(tuples))], ) |
