summaryrefslogtreecommitdiff
path: root/test/test_sound_server_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_sound_server_api.py')
-rwxr-xr-xtest/test_sound_server_api.py18
1 files changed, 6 insertions, 12 deletions
diff --git a/test/test_sound_server_api.py b/test/test_sound_server_api.py
index e68c6f8..11cd422 100755
--- a/test/test_sound_server_api.py
+++ b/test/test_sound_server_api.py
@@ -1,17 +1,11 @@
#!/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__)), '..')
- )
-])
+import __py_include
import threading
from time import sleep
-from src.home.config import config
-from src.home.api import WebAPIClient
-from src.home.api.types import SoundSensorLocation
+from homekit.config import config
+from homekit.api import WebApiClient
+from homekit.api.types import SoundSensorLocation
from typing import List, Tuple
interrupted = False
@@ -56,10 +50,10 @@ def hits_sender():
if __name__ == '__main__':
- config.load('test_api')
+ config.load_app('test_api')
hc = HitCounter()
- api = WebAPIClient()
+ api = WebApiClient()
hc.add('spb1', 1)
# hc.add('big_house', 123)