summaryrefslogtreecommitdiff
path: root/test/test_api.py
blob: ecf87644dba395d8129eae2d3fcac20a5f367436 (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"))