Send notification when snasphot is restored

Ref https://github.com/GNS3/gns3-gui/issues/1417
This commit is contained in:
Julien Duponchelle committed 2016-08-19 17:07:56 +02:00
1 parent 0226bb663f
commit 39db35c3ff
3 files changed
+8

No files matched your search

+1
View File
@@ -94,6 +94,7 @@ def test_restore(project, controller, async_run):
with patch("gns3server.config.Config.get_section_config", return_value={"local": True}):
async_run(snapshot.restore())
assert "snapshot.restored" in [c[0][0] for c in controller.notification.emit.call_args_list]
# project.closed notification should not be send when restoring snapshots
assert "project.closed" not in [c[0][0] for c in controller.notification.emit.call_args_list]