Skip to content

Commit

Permalink
tests improved
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Mar 28, 2024
1 parent 33cd979 commit c41bb4e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def get_version_of_required_eltako14bus(self):
return r.split('==')[1].strip()
return None

def get_version_of_eltako_integration(self):
return self.get_manifest()['version']

def test_check_all_installed_dependencies(self):
manifest = self.get_manifest()

Expand All @@ -53,4 +56,11 @@ def test_eltako14bus_required_and_installed_is_the_same(self):

self.assertIsNotNone(installed)
self.assertIsNotNone(required)
self.assertEqual(installed, required)
self.assertEqual(installed, required)

def test_if_changes_are_documented(self):
changes_filename = os.path.join(os.getcwd(), 'changes.md')
with open(changes_filename, 'r', encoding="utf-8") as f:
changes_text = f.read()

self.assertTrue( f'## Version {self.get_version_of_eltako_integration()}' in changes_text )

0 comments on commit c41bb4e

Please sign in to comment.