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
|
# set the model to a new default deck
|
||||||
newId = d.decks.id("new")
|
newId = d.decks.id("new")
|
||||||
cloze['did'] = newId
|
cloze['did'] = newId
|
||||||
d.models.save(cloze)
|
d.models.save(cloze, updateReqs=False)
|
||||||
# a newly generated card should share the first card's deck
|
# a newly generated card should share the first card's deck
|
||||||
f['Text'] += '{{c2::two}}'
|
f['Text'] += '{{c2::two}}'
|
||||||
f.flush()
|
f.flush()
|
||||||
|
@ -57,7 +57,7 @@ def test_noteAddDelete():
|
|||||||
assert deck.cardCount() == 1
|
assert deck.cardCount() == 1
|
||||||
# but when templates are edited such as in the card layout screen, it
|
# but when templates are edited such as in the card layout screen, it
|
||||||
# should generate cards on close
|
# should generate cards on close
|
||||||
mm.save(m, templates=True)
|
mm.save(m, templates=True, updateReqs=False)
|
||||||
assert deck.cardCount() == 2
|
assert deck.cardCount() == 2
|
||||||
# creating new notes should use both cards
|
# creating new notes should use both cards
|
||||||
f = deck.newNote()
|
f = deck.newNote()
|
||||||
|
@ -35,7 +35,7 @@ def test_basic():
|
|||||||
deck.decks.id("ONE")
|
deck.decks.id("ONE")
|
||||||
m = deck.models.current()
|
m = deck.models.current()
|
||||||
m['did'] = deck.decks.id("one::two")
|
m['did'] = deck.decks.id("one::two")
|
||||||
deck.models.save(m)
|
deck.models.save(m, updateReqs=False)
|
||||||
n = deck.newNote()
|
n = deck.newNote()
|
||||||
n['Front'] = "abc"
|
n['Front'] = "abc"
|
||||||
deck.addNote(n)
|
deck.addNote(n)
|
||||||
|
@ -386,7 +386,7 @@ def test_review_limits():
|
|||||||
|
|
||||||
m = d.models.current()
|
m = d.models.current()
|
||||||
m['did'] = child['id']
|
m['did'] = child['id']
|
||||||
d.models.save(m)
|
d.models.save(m, updateReqs=False)
|
||||||
|
|
||||||
# add some cards
|
# add some cards
|
||||||
for i in range(20):
|
for i in range(20):
|
||||||
|
Loading…
Reference in New Issue
Block a user