diff options
author | Ruan HE <ruan.he@orange.com> | 2018-01-03 13:25:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-03 13:25:58 +0000 |
commit | 68fba32ca955bc07035522c3db5f1b62dc2d357e (patch) | |
tree | 46dff0c533acedf065d470c2f3345efe18f925b6 /moon_manager/tests/unit_python/api/utilities.py | |
parent | 52d037e757ac2189978e1129f469929fe73a9b7f (diff) | |
parent | 5013250aaf91da1099b40f3529e3a3f1b4cb9efe (diff) |
Merge "Refactor moon manager test cases"
Diffstat (limited to 'moon_manager/tests/unit_python/api/utilities.py')
-rw-r--r-- | moon_manager/tests/unit_python/api/utilities.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/moon_manager/tests/unit_python/api/utilities.py b/moon_manager/tests/unit_python/api/utilities.py new file mode 100644 index 00000000..1c055da5 --- /dev/null +++ b/moon_manager/tests/unit_python/api/utilities.py @@ -0,0 +1,12 @@ +import json + + +def get_json(data): + return json.loads(data.decode("utf-8")) + + +def register_client(): + import moon_manager.server + server = moon_manager.server.main() + client = server.app.test_client() + return client
\ No newline at end of file |