summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/__py_include.py9
l---------test/include_homekit.py1
-rwxr-xr-xtest/mqtt_relay_server_util.py2
-rwxr-xr-xtest/mqtt_relay_util.py2
-rwxr-xr-xtest/test_amixer.py2
-rwxr-xr-xtest/test_api.py2
-rwxr-xr-xtest/test_esp32_cam.py2
-rwxr-xr-xtest/test_inverter_monitor.py2
-rw-r--r--test/test_ipcam_server_cleanup.py2
-rwxr-xr-xtest/test_modems.py2
-rwxr-xr-xtest/test_polaris_stuff.py2
-rwxr-xr-xtest/test_record_upload.py2
-rwxr-xr-xtest/test_send_fake_sound_hit.py2
-rwxr-xr-xtest/test_sound_node_client.py2
-rwxr-xr-xtest/test_sound_server_api.py2
-rwxr-xr-xtest/test_stopwatch.py2
-rw-r--r--test/test_telegram_aio_send_photo.py2
17 files changed, 16 insertions, 24 deletions
diff --git a/test/__py_include.py b/test/__py_include.py
deleted file mode 100644
index 8f98830..0000000
--- a/test/__py_include.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import sys
-import os.path
-
-for _name in ('include/py',):
- sys.path.extend([
- os.path.realpath(
- os.path.join(os.path.dirname(os.path.join(__file__)), '..', _name)
- )
- ]) \ No newline at end of file
diff --git a/test/include_homekit.py b/test/include_homekit.py
new file mode 120000
index 0000000..0cb1486
--- /dev/null
+++ b/test/include_homekit.py
@@ -0,0 +1 @@
+../include_homekit.py \ No newline at end of file
diff --git a/test/mqtt_relay_server_util.py b/test/mqtt_relay_server_util.py
index 6c02d75..013d876 100755
--- a/test/mqtt_relay_server_util.py
+++ b/test/mqtt_relay_server_util.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
from homekit.config import config
diff --git a/test/mqtt_relay_util.py b/test/mqtt_relay_util.py
index efa5588..ec79027 100755
--- a/test/mqtt_relay_util.py
+++ b/test/mqtt_relay_util.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
from argparse import ArgumentParser
from homekit.config import config
diff --git a/test/test_amixer.py b/test/test_amixer.py
index e4abc73..1a78592 100755
--- a/test/test_amixer.py
+++ b/test/test_amixer.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
from argparse import ArgumentParser
from homekit.config import config
diff --git a/test/test_api.py b/test/test_api.py
index b35a597..ed40526 100755
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
from homekit.api import WebApiClient
from homekit.config import config
diff --git a/test/test_esp32_cam.py b/test/test_esp32_cam.py
index 962768f..6296dcd 100755
--- a/test/test_esp32_cam.py
+++ b/test/test_esp32_cam.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
from pprint import pprint
from argparse import ArgumentParser
diff --git a/test/test_inverter_monitor.py b/test/test_inverter_monitor.py
index 3231bab..ccb5d8f 100755
--- a/test/test_inverter_monitor.py
+++ b/test/test_inverter_monitor.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
from enum import Enum, auto
from typing import Optional
diff --git a/test/test_ipcam_server_cleanup.py b/test/test_ipcam_server_cleanup.py
index ae8d31c..b627fd9 100644
--- a/test/test_ipcam_server_cleanup.py
+++ b/test/test_ipcam_server_cleanup.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
import logging
import os
import shutil
diff --git a/test/test_modems.py b/test/test_modems.py
index 39981f7..84cb1a7 100755
--- a/test/test_modems.py
+++ b/test/test_modems.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
from homekit.modem import E3372, ModemsConfig
diff --git a/test/test_polaris_stuff.py b/test/test_polaris_stuff.py
index 7778667..88b23b9 100755
--- a/test/test_polaris_stuff.py
+++ b/test/test_polaris_stuff.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
import syncleo
diff --git a/test/test_record_upload.py b/test/test_record_upload.py
index f9c83d8..ae9f8cc 100755
--- a/test/test_record_upload.py
+++ b/test/test_record_upload.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
import logging
import time
diff --git a/test/test_send_fake_sound_hit.py b/test/test_send_fake_sound_hit.py
index 3cc3e50..1c38113 100755
--- a/test/test_send_fake_sound_hit.py
+++ b/test/test_send_fake_sound_hit.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
from argparse import ArgumentParser
from homekit.util import send_datagram, stringify, Addr
diff --git a/test/test_sound_node_client.py b/test/test_sound_node_client.py
index c3748ca..247cc69 100755
--- a/test/test_sound_node_client.py
+++ b/test/test_sound_node_client.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
from homekit.api.errors import ApiResponseError
from homekit.media import SoundNodeClient
diff --git a/test/test_sound_server_api.py b/test/test_sound_server_api.py
index 11cd422..85f6ce2 100755
--- a/test/test_sound_server_api.py
+++ b/test/test_sound_server_api.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
import threading
from time import sleep
diff --git a/test/test_stopwatch.py b/test/test_stopwatch.py
index 1da0fe7..efcf936 100755
--- a/test/test_stopwatch.py
+++ b/test/test_stopwatch.py
@@ -1,4 +1,4 @@
-import __py_include
+import include_homekit
from homekit.util import Stopwatch, StopwatchError
from time import sleep
diff --git a/test/test_telegram_aio_send_photo.py b/test/test_telegram_aio_send_photo.py
index 019fa92..9f591c4 100644
--- a/test/test_telegram_aio_send_photo.py
+++ b/test/test_telegram_aio_send_photo.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-import __py_include
+import include_homekit
import asyncio
import homekit.telegram.aio as telegram