From 6a529e51cc98770db9f24d50c36315bc9b814584 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Fri, 17 Jul 2020 06:08:33 +0200 Subject: [PATCH] note->n Next commit will transform f into note, and this lead to a variable clash here --- pylib/tests/test_cards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylib/tests/test_cards.py b/pylib/tests/test_cards.py index 1760e838e..55bd8908a 100644 --- a/pylib/tests/test_cards.py +++ b/pylib/tests/test_cards.py @@ -52,8 +52,8 @@ def test_genrem(): t["qfmt"] = "{{Back}}" mm.save(m, templates=True) rep = d.backend.get_empty_cards() - for note in rep.notes: - d.remove_cards_and_orphaned_notes(note.card_ids) + for n in rep.notes: + d.remove_cards_and_orphaned_notes(n.card_ids) assert len(f.cards()) == 1 # if we add to the note, a card should be automatically generated f.load()