add some updateReqs=False in tests

This commit is contained in:
Arthur Milchior 2019-12-20 13:25:30 -08:00
parent 9df10bb9ef
commit e835403b8c
4 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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)

View File

@ -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):