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

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