From 4d0cb32bd0f3a5bdf8d27827f7b89e0f08ae120e Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 24 Mar 2021 12:39:22 +1030 Subject: [PATCH] Fix tests --- tests/controller/test_export_project.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/controller/test_export_project.py b/tests/controller/test_export_project.py index 30e50242..f1a0211f 100644 --- a/tests/controller/test_export_project.py +++ b/tests/controller/test_export_project.py @@ -61,9 +61,11 @@ async def write_file(path, z): f.write(chunk) -def test_exportable_files(): +def test_exportable_files(tmpdir): - assert _is_exportable("hello/world") + with open(str(tmpdir / "test.file"), "w+") as f: + f.write("AAA") + assert _is_exportable(str(tmpdir / "test.file")) assert not _is_exportable("project-files/tmp") assert not _is_exportable("project-files/test_log.txt") assert not _is_exportable("project-files/test.log")