mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
12 lines
265 B
Python
12 lines
265 B
Python
# coding: utf-8
|
|
|
|
from shared import getUpgradeDeckPath
|
|
from anki.migration.checker import check
|
|
|
|
def test_checker():
|
|
dst = getUpgradeDeckPath()
|
|
assert check(dst)
|
|
# if it's corrupted, will fail
|
|
open(dst, "w+").write("foo")
|
|
assert not check(dst)
|
|
|