use a new file each time when testing graphs

This commit is contained in:
Damien Elmes 2020-04-06 09:39:14 +10:00
parent 5a0203c7b4
commit 991e6bdd4c

View File

@ -28,11 +28,8 @@ def test_graphs_empty():
def test_graphs():
from anki import Collection as aopen
dir = tempfile.gettempdir()
d = aopen(os.path.join(dir, "test.anki2"))
d = getEmptyCol()
g = d.stats()
rep = g.report()
with open(os.path.join(dir, "test.html"), "w", encoding="UTF-8") as f: