API for duplicate a project

Ref https://github.com/GNS3/gns3-gui/issues/995
This commit is contained in:
Julien Duponchelle committed 2016-07-25 16:26:33 +02:00
1 parent fb3b6b62f5
commit f357879186
9 files changed
+285 -57

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ class AsyncioMagicMock(unittest.mock.MagicMock):
"""
:return_values: Array of return value at each call will return the next
"""
if return_value:
if return_value is not None:
future = asyncio.Future()
future.set_result(return_value)
kwargs["return_value"] = future