diff --git a/tests/hub/hubidtoname.py b/tests/hub/hubidtoname.py deleted file mode 100755 index 578bd20..0000000 --- a/tests/hub/hubidtoname.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -import sys, logging -from cozify import config, hub - -def test_hub_id_to_name(conf_file, hub_id): - logging.basicConfig(level=logging.DEBUG) - config.setStatePath(conf_file) - - print(hub.getHubName(hub_id)) - -if __name__ == "__main__": - conf_file = None - hub_name = None - if len(sys.argv) > 1: - hub_id = sys.argv[1] - if len(sys.argv) > 2: - conf_file = sys.argv[1] - else: - conf_file='/tmp/python-cozify-testing.cfg' - else: - sys.exit(1) - test_hub_id_to_name(conf_file, hub_id) diff --git a/tests/hub/hubnametoid.py b/tests/hub/hubnametoid.py deleted file mode 100755 index 1f5fbc3..0000000 --- a/tests/hub/hubnametoid.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -import sys, logging -from cozify import config, hub - -def test_hubnametoid(conf_file, hub_name): - logging.basicConfig(level=logging.DEBUG) - config.setStatePath(conf_file) - - print(hub.getHubId(hub_name)) - -if __name__ == "__main__": - conf_file = None - hub_name = None - if len(sys.argv) > 1: - conf_file = sys.argv[1] - if len(sys.argv) > 2: - hub_name = sys.argv[2] - else: - hub_name='Hubnester' - else: - conf_file='/tmp/python-cozify-testing.cfg' - test_hubnametoid(conf_file, hub_name) diff --git a/tests/hub/multisensor.py b/tests/hub/multisensor.py deleted file mode 100755 index e5cde5a..0000000 --- a/tests/hub/multisensor.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env python3 - -from cozify import hub, multisensor, config -import sys, logging - -def test_multisensor(conf_file): - logging.basicConfig(level=logging.DEBUG) - config.setStatePath(conf_file) - - data = hub.getDevices() - print(multisensor.getMultisensorData(data)) - -if __name__ == "__main__": - conf_file = None - if len(sys.argv) > 1: - conf_file = sys.argv[1] - else: - conf_file='/tmp/python-cozify-testing.cfg' - test_multisensor(conf_file)