mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
fix unit test
This commit is contained in:
parent
6ebdd7a8b8
commit
b436c46b18
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue