Allow user to change project path on local server

This commit is contained in:
Julien Duponchelle committed 2015-02-05 17:52:37 +01:00
1 parent 9f7b8574c8
commit 5a0c224292
5 files changed
+35 -15

No files matched your search

+7
View File
@@ -56,6 +56,13 @@ def test_path(tmpdir):
assert not os.path.exists(os.path.join(p.path, ".gns3_temporary"))
def test_init_path(tmpdir):
with patch("gns3server.config.Config.get_section_config", return_value={"local": True}):
p = Project(path=str(tmpdir))
assert p.path == str(tmpdir)
def test_changing_path_temporary_flag(tmpdir):
with patch("gns3server.config.Config.get_section_config", return_value={"local": True}):