Next commit will transform f into note, and this lead to a variable clash here
This commit is contained in:
Arthur Milchior 2020-07-17 06:08:33 +02:00
parent 61017a2e21
commit 6a529e51cc

View file

@ -52,8 +52,8 @@ def test_genrem():
t["qfmt"] = "{{Back}}" t["qfmt"] = "{{Back}}"
mm.save(m, templates=True) mm.save(m, templates=True)
rep = d.backend.get_empty_cards() rep = d.backend.get_empty_cards()
for note in rep.notes: for n in rep.notes:
d.remove_cards_and_orphaned_notes(note.card_ids) d.remove_cards_and_orphaned_notes(n.card_ids)
assert len(f.cards()) == 1 assert len(f.cards()) == 1
# if we add to the note, a card should be automatically generated # if we add to the note, a card should be automatically generated
f.load() f.load()