mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Send notification when snasphot is restored
Ref https://github.com/GNS3/gns3-gui/issues/1417
This commit is contained in:
3 files changed
+8
No files matched your search
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user