mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Set a location by default
This commit is contained in:
1 parent
7bed9f56bc
commit
8e249b670d
4 files changed
+52
-2
No files matched your search
@@ -130,3 +130,11 @@ def test_project_close_temporary_project(manager):
|
||||
assert os.path.exists(directory)
|
||||
project.close()
|
||||
assert os.path.exists(directory) is False
|
||||
|
||||
|
||||
def test_get_default_project_directory():
|
||||
|
||||
project = Project()
|
||||
path = os.path.normpath(os.path.expanduser("~/GNS3/projects"))
|
||||
assert project._get_default_project_directory() == path
|
||||
assert os.path.exists(path)
|
||||
Reference in new issue
Block a user