diff options
Diffstat (limited to 'test/test_api.py')
-rwxr-xr-x | test/test_api.py | 11 |
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")) |