diff --git a/requirements.txt b/requirements.txt index b2ca5795..65173452 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ aiocoap pyserial-asyncio -eltako14bus -enocean +eltako14bus==0.0.49 +enocean==0.60.1 homeassistant termcolor StrEnum -esp2-gateway-adapter \ No newline at end of file +esp2-gateway-adapter==0.1 \ No newline at end of file diff --git a/tests/test_metadata.py b/tests/test_metadata.py index c05d959c..572b33cb 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -47,7 +47,7 @@ def get_version_of_required_eltako14bus(self): def get_version_of_eltako_integration(self): return self.get_manifest()['version'] - + def test_check_all_installed_dependencies(self): manifest = self.get_manifest() @@ -60,8 +60,17 @@ def test_check_all_installed_dependencies(self): # if this test fails install specified libraries in manifest.json self.assertEqual(required_version, installed_version) + + def test_check_manifest_and_requirements_match(self): + manifest = self.get_manifest() + + requirements_txt_fn = os.path.join(os.getcwd(), 'requirements.txt') + with open(requirements_txt_fn, 'r', encoding="utf-8") as f: + requirements_txt = f.read() + + for r in manifest['requirements']: + self.assertTrue(r in requirements_txt) - return None def test_eltako14bus_required_and_installed_is_the_same(self): installed = self.get_version_of_installed_eltako14bus()