aboutsummaryrefslogtreecommitdiffstats
path: root/moon_manager/tests/unit_python/mock_engine.py
diff options
context:
space:
mode:
Diffstat (limited to 'moon_manager/tests/unit_python/mock_engine.py')
-rw-r--r--moon_manager/tests/unit_python/mock_engine.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/moon_manager/tests/unit_python/mock_engine.py b/moon_manager/tests/unit_python/mock_engine.py
new file mode 100644
index 00000000..0685d376
--- /dev/null
+++ b/moon_manager/tests/unit_python/mock_engine.py
@@ -0,0 +1,19 @@
+# Software Name: MOON
+
+# Version: 5.4
+
+# SPDX-FileCopyrightText: Copyright (c) 2018-2020 Orange and its contributors
+# SPDX-License-Identifier: Apache-2.0
+
+# This software is distributed under the 'Apache License 2.0',
+# the text of which is available at 'http://www.apache.org/licenses/LICENSE-2.0.txt'
+# or see the "LICENSE" file for more details.
+
+
+
+def register_engine(m):
+ for port in range(20000, 20010):
+ m.register_uri(
+ 'POST', 'http://127.0.0.1:{}/update'.format(port),
+ json={}
+ )