mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Fix tests
This commit is contained in:
parent
055a78bade
commit
4d0cb32bd0
@ -61,9 +61,11 @@ async def write_file(path, z):
|
|||||||
f.write(chunk)
|
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/tmp")
|
||||||
assert not _is_exportable("project-files/test_log.txt")
|
assert not _is_exportable("project-files/test_log.txt")
|
||||||
assert not _is_exportable("project-files/test.log")
|
assert not _is_exportable("project-files/test.log")
|
||||||
|
Loading…
Reference in New Issue
Block a user