mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Fix crash in some tests
This commit is contained in:
parent
b755840a27
commit
57ba7ab801
@ -216,15 +216,15 @@ def test_get_default_project_directory(monkeypatch):
|
|||||||
def test_clean_project_directory(tmpdir):
|
def test_clean_project_directory(tmpdir):
|
||||||
|
|
||||||
# A non anonymous project with uuid.
|
# A non anonymous project with uuid.
|
||||||
project1 = tmpdir / uuid4()
|
project1 = tmpdir / str(uuid4())
|
||||||
project1.mkdir()
|
project1.mkdir()
|
||||||
|
|
||||||
# A non anonymous project.
|
# A non anonymous project.
|
||||||
oldproject = tmpdir / uuid4()
|
oldproject = tmpdir / str(uuid4())
|
||||||
oldproject.mkdir()
|
oldproject.mkdir()
|
||||||
|
|
||||||
# an anonymous project
|
# an anonymous project
|
||||||
project2 = tmpdir / uuid4()
|
project2 = tmpdir / str(uuid4())
|
||||||
project2.mkdir()
|
project2.mkdir()
|
||||||
tmp = (project2 / ".gns3_temporary")
|
tmp = (project2 / ".gns3_temporary")
|
||||||
with open(str(tmp), 'w+') as f:
|
with open(str(tmp), 'w+') as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user