fix unit test

This commit is contained in:
Damien Elmes 2012-09-09 06:32:03 +09:00
parent 6ebdd7a8b8
commit b436c46b18

View file

@ -57,7 +57,7 @@ def test_anki1():
# get the deck path to import # get the deck path to import
tmp = getUpgradeDeckPath() tmp = getUpgradeDeckPath()
# make sure media is imported properly through the upgrade # make sure media is imported properly through the upgrade
mdir = tmp.replace(".anki", ".media") mdir = tmp.replace(".anki2", ".media")
if not os.path.exists(mdir): if not os.path.exists(mdir):
os.mkdir(mdir) os.mkdir(mdir)
open(os.path.join(mdir, "foo.jpg"), "w").write("foo") open(os.path.join(mdir, "foo.jpg"), "w").write("foo")