mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
use a new file each time when testing graphs
This commit is contained in:
parent
5a0203c7b4
commit
991e6bdd4c
1 changed files with 1 additions and 4 deletions
|
@ -28,11 +28,8 @@ def test_graphs_empty():
|
||||||
|
|
||||||
|
|
||||||
def test_graphs():
|
def test_graphs():
|
||||||
from anki import Collection as aopen
|
|
||||||
|
|
||||||
dir = tempfile.gettempdir()
|
dir = tempfile.gettempdir()
|
||||||
|
d = getEmptyCol()
|
||||||
d = aopen(os.path.join(dir, "test.anki2"))
|
|
||||||
g = d.stats()
|
g = d.stats()
|
||||||
rep = g.report()
|
rep = g.report()
|
||||||
with open(os.path.join(dir, "test.html"), "w", encoding="UTF-8") as f:
|
with open(os.path.join(dir, "test.html"), "w", encoding="UTF-8") as f:
|
||||||
|
|
Loading…
Reference in a new issue