mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 00:27:13 -05:00
face fix cond in sync test
This commit is contained in:
parent
6669f1ba10
commit
b5e33aafac
1 changed files with 3 additions and 2 deletions
|
|
@ -84,13 +84,14 @@ def test_sync():
|
||||||
assert client.sync() == "noChanges"
|
assert client.sync() == "noChanges"
|
||||||
# if we bump mod time, the decks will sync but should remain the same.
|
# if we bump mod time, the decks will sync but should remain the same.
|
||||||
deck1.setMod()
|
deck1.setMod()
|
||||||
deck1.save()
|
deck1.save(mod=deck1.mod+1)
|
||||||
assert client.sync() == "success"
|
assert client.sync() == "success"
|
||||||
check(2)
|
check(2)
|
||||||
# crt should be synced
|
# crt should be synced
|
||||||
deck1.crt = 123
|
deck1.crt = 123
|
||||||
deck1.setMod()
|
deck1.setMod()
|
||||||
assert client.sync() == "success"
|
deck1.save(mod=deck1.mod+1)
|
||||||
|
ret = client.sync(); assert ret == "success"
|
||||||
assert deck1.crt == deck2.crt
|
assert deck1.crt == deck2.crt
|
||||||
|
|
||||||
@nose.with_setup(setup_modified)
|
@nose.with_setup(setup_modified)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue