Replace snapshots by import / export

Fix #1042
This commit is contained in:
Julien Duponchelle
2016-07-26 10:32:43 +02:00
parent 814fd1fcfb
commit 68eca6c111
14 changed files with 606 additions and 18 deletions

View File

@ -338,11 +338,6 @@ def test_load_project(controller, async_run, tmpdir):
node1 = project.get_node("50d66d7b-0dd7-4e9f-b720-6eb621ae6543")
assert node1.name == "PC1"
# Reload the same project should do nothing
with asyncio_patch("gns3server.controller.Controller.add_project") as mock_add_project:
project = async_run(controller.load_project(str(tmpdir / "test.gns3")))
assert not mock_add_project.called
def test_get_free_project_name(controller, async_run):