diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-10-30 01:52:20 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-10-30 01:52:20 +0300 |
commit | 2518bf0e8457d8d945f40cc6ff1a74fc094d6999 (patch) | |
tree | ed7acfc6da9ba02d24d85b382a658bad77460a9d /test/test_api.py | |
parent | 3cf7eb21ec2e858aa467c9fc087fec8e8c700b6a (diff) |
fix api client
Diffstat (limited to 'test/test_api.py')
-rwxr-xr-x | test/test_api.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/test_api.py b/test/test_api.py index 959b2b3..1f6361c 100755 --- a/test/test_api.py +++ b/test/test_api.py @@ -1,7 +1,15 @@ #!/usr/bin/env python3 -from home.api import WebAPIClient -from home.api.types import BotType -from home.config import config +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__': |