summaryrefslogtreecommitdiff
path: root/test/test_api.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-06-14 02:44:43 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-06-14 22:56:46 +0300
commite3d3d6b76010a6dd5c417f017339bec17fb07887 (patch)
tree42cb6194504ae863db2bf7d21ef9e2acd41d0fd2 /test/test_api.py
parent600fdf99ffd893857c9cdb9e68140766a963bd17 (diff)
media: refactor sound_node, introduce camera_node
Diffstat (limited to 'test/test_api.py')
-rwxr-xr-xtest/test_api.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_api.py b/test/test_api.py
new file mode 100755
index 0000000..959b2b3
--- /dev/null
+++ b/test/test_api.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python3
+from home.api import WebAPIClient
+from home.api.types import BotType
+from home.config import config
+
+
+if __name__ == '__main__':
+ config.load('test_api')
+
+ api = WebAPIClient()
+ print(api.log_bot_request(BotType.ADMIN, 1, "test_api.py"))