mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix tests creating garbage project in ~/GNS3/project
This commit is contained in:
1 parent
8118d7762f
commit
5c3969ae79
2 files changed
+9
-2
No files matched your search
@@ -198,8 +198,9 @@ def test_project_close_temporary_project(loop, manager):
|
||||
assert os.path.exists(directory) is False
|
||||
|
||||
|
||||
def test_get_default_project_directory():
|
||||
def test_get_default_project_directory(monkeypatch):
|
||||
|
||||
monkeypatch.undo()
|
||||
project = Project()
|
||||
path = os.path.normpath(os.path.expanduser("~/GNS3/projects"))
|
||||
assert project._get_default_project_directory() == path
|
||||
|
||||
Reference in new issue
Block a user