From 0e678794fd2c858069fbbe0b985a0e2f064862b1 Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Wed, 3 Jan 2018 15:17:26 +0100 Subject: Clean the code Change-Id: I6693e1e2c648791027d290f64798482d655ad011 --- moon_orchestrator/tests/unit_python/test_pods.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'moon_orchestrator/tests/unit_python') 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'), -- cgit 1.2.3-korg