summaryrefslogtreecommitdiff
path: root/test/test_api.py
blob: e80eb4c8dbc120153e4e96e759860ca0984ac347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python3
import sys
import os.path
sys.path.extend([
    os.path.realpath(
        os.path.join(os.path.dirname(os.path.join(__file__)), '..')
    )
])

from src.home.api import WebAPIClient
from src.home.api.types import BotType
from src.home.config import config


if __name__ == '__main__':
    config.load_app('test_api')

    api = WebAPIClient()
    print(api.log_bot_request(BotType.ADMIN, 1, "test_api.py"))