From e835403b8cec84ff913b0f8c28b86b971c965cae Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Fri, 20 Dec 2019 13:25:30 -0800 Subject: [PATCH] add some updateReqs=False in tests --- tests/test_cards.py | 2 +- tests/test_collection.py | 2 +- tests/test_decks.py | 2 +- tests/test_schedv2.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_cards.py b/tests/test_cards.py index 5731228fd..b0732b80b 100644 --- a/tests/test_cards.py +++ b/tests/test_cards.py @@ -87,7 +87,7 @@ def test_gendeck(): # set the model to a new default deck newId = d.decks.id("new") cloze['did'] = newId - d.models.save(cloze) + d.models.save(cloze, updateReqs=False) # a newly generated card should share the first card's deck f['Text'] += '{{c2::two}}' f.flush() diff --git a/tests/test_collection.py b/tests/test_collection.py index 2338da991..7aed8d127 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -57,7 +57,7 @@ def test_noteAddDelete(): assert deck.cardCount() == 1 # but when templates are edited such as in the card layout screen, it # should generate cards on close - mm.save(m, templates=True) + mm.save(m, templates=True, updateReqs=False) assert deck.cardCount() == 2 # creating new notes should use both cards f = deck.newNote() diff --git a/tests/test_decks.py b/tests/test_decks.py index f88f335d3..f73c108b7 100644 --- a/tests/test_decks.py +++ b/tests/test_decks.py @@ -35,7 +35,7 @@ def test_basic(): deck.decks.id("ONE") m = deck.models.current() m['did'] = deck.decks.id("one::two") - deck.models.save(m) + deck.models.save(m, updateReqs=False) n = deck.newNote() n['Front'] = "abc" deck.addNote(n) diff --git a/tests/test_schedv2.py b/tests/test_schedv2.py index 0ffbb7865..f3b41fe9b 100644 --- a/tests/test_schedv2.py +++ b/tests/test_schedv2.py @@ -386,7 +386,7 @@ def test_review_limits(): m = d.models.current() m['did'] = child['id'] - d.models.save(m) + d.models.save(m, updateReqs=False) # add some cards for i in range(20):