aboutsummaryrefslogtreecommitdiffstats
path: root/moon_orchestrator/tests/unit_python
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2018-01-03 15:17:26 +0100
committerThomas Duval <thomas.duval@orange.com>2018-01-03 15:17:26 +0100
commit0e678794fd2c858069fbbe0b985a0e2f064862b1 (patch)
treecbd0de85d9830dbd02b2cf486e910b83944235f8 /moon_orchestrator/tests/unit_python
parent681cfafb6a58757d2c56a135d909561d4a654a13 (diff)
Clean the code
Change-Id: I6693e1e2c648791027d290f64798482d655ad011
Diffstat (limited to 'moon_orchestrator/tests/unit_python')
-rw-r--r--moon_orchestrator/tests/unit_python/test_pods.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/moon_orchestrator/tests/unit_python/test_pods.py b/moon_orchestrator/tests/unit_python/test_pods.py
index 42c8404b..0a5a5ba5 100644
--- a/moon_orchestrator/tests/unit_python/test_pods.py
+++ b/moon_orchestrator/tests/unit_python/test_pods.py
@@ -7,7 +7,7 @@ def test_get_pods(context, monkeypatch):
patch_k8s(monkeypatch)
import moon_orchestrator.server
- server = moon_orchestrator.server.main()
+ server = moon_orchestrator.server.create_server()
_client = server.app.test_client()
req = _client.get("/pods")
assert req.status_code == 200
@@ -21,7 +21,7 @@ def test_add_pods(context, monkeypatch):
patch_k8s(monkeypatch)
import moon_orchestrator.server
- server = moon_orchestrator.server.main()
+ server = moon_orchestrator.server.create_server()
_client = server.app.test_client()
data = {
"keystone_project_id": context.get('project_id'),