add some updateReqs=False in tests
This commit is contained in:
parent
9df10bb9ef
commit
e835403b8c
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user