From 991e6bdd4c936a704572a73f37c4fc65c8874036 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 6 Apr 2020 09:39:14 +1000 Subject: [PATCH] use a new file each time when testing graphs --- pylib/tests/test_stats.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pylib/tests/test_stats.py b/pylib/tests/test_stats.py index 045983ac0..91e59e263 100644 --- a/pylib/tests/test_stats.py +++ b/pylib/tests/test_stats.py @@ -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: