diff options
author | Thomas Duval <thomas.duval@orange.com> | 2018-01-03 15:17:26 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2018-01-03 15:17:26 +0100 |
commit | 0e678794fd2c858069fbbe0b985a0e2f064862b1 (patch) | |
tree | cbd0de85d9830dbd02b2cf486e910b83944235f8 /moon_orchestrator/tests/unit_python | |
parent | 681cfafb6a58757d2c56a135d909561d4a654a13 (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.py | 4 |
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'), |