diff options
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 |