Repository: Ernst79/bleparser (language: python)

Issue:
Tests using source package
Tests are using the pypi package, but they should be using the source package. This causes the test to fail when new tests/devices are added. 


Discussion / hints:

Fix patch:
diff --git a/setup.cfg b/setup.cfg
index 9cdae3e..066b938 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -22,3 +22,5 @@ python_requires = >=3.7
 
 [options.packages.find]
 where = package
+exclude =
+    tests
\ No newline at end of file


Test patch:
diff --git a/tests/__init__.py b/package/tests/__init__.py
similarity index 100%
rename from tests/__init__.py
rename to package/tests/__init__.py
diff --git a/tests/test_atc_parser.py b/package/tests/test_atc_parser.py
similarity index 100%
rename from tests/test_atc_parser.py
rename to package/tests/test_atc_parser.py
diff --git a/tests/test_brifit_parser.py b/package/tests/test_brifit_parser.py
similarity index 100%
rename from tests/test_brifit_parser.py
rename to package/tests/test_brifit_parser.py
diff --git a/tests/test_govee_parser.py b/package/tests/test_govee_parser.py
similarity index 100%
rename from tests/test_govee_parser.py
rename to package/tests/test_govee_parser.py
diff --git a/tests/test_inode_parser.py b/package/tests/test_inode_parser.py
similarity index 100%
rename from tests/test_inode_parser.py
rename to package/tests/test_inode_parser.py
diff --git a/tests/test_kegtron_parser.py b/package/tests/test_kegtron_parser.py
similarity index 100%
rename from tests/test_kegtron_parser.py
rename to package/tests/test_kegtron_parser.py
diff --git a/tests/test_miscale_parser.py b/package/tests/test_miscale_parser.py
similarity index 100%
rename from tests/test_miscale_parser.py
rename to package/tests/test_miscale_parser.py
diff --git a/tests/test_qingping_parser.py b/package/tests/test_qingping_parser.py
similarity index 100%
rename from tests/test_qingping_parser.py
rename to package/tests/test_qingping_parser.py
diff --git a/tests/test_ruuvitag_parser.py b/package/tests/test_ruuvitag_parser.py
similarity index 100%
rename from tests/test_ruuvitag_parser.py
rename to package/tests/test_ruuvitag_parser.py
diff --git a/tests/test_sensorpush.py b/package/tests/test_sensorpush.py
similarity index 100%
rename from tests/test_sensorpush.py
rename to package/tests/test_sensorpush.py
diff --git a/tests/test_teltonika.py b/package/tests/test_teltonika.py
similarity index 100%
rename from tests/test_teltonika.py
rename to package/tests/test_teltonika.py
diff --git a/tests/test_thermoplus_parser.py b/package/tests/test_thermoplus_parser.py
similarity index 100%
rename from tests/test_thermoplus_parser.py
rename to package/tests/test_thermoplus_parser.py
diff --git a/tests/test_xiaomi_parser.py b/package/tests/test_xiaomi_parser.py
similarity index 100%
rename from tests/test_xiaomi_parser.py
rename to package/tests/test_xiaomi_parser.py