diff --git a/tools/test_verify_versions.py b/tools/test_verify_versions.py index 17ef2fb..09333c5 100644 --- a/tools/test_verify_versions.py +++ b/tools/test_verify_versions.py @@ -5,11 +5,11 @@ class TestRetrieveTagInfo(unittest.TestCase): def test_tag_on_first_page(self): data = verify_versions.retrieve_tag_info("1.0.9", "https://api.github.com/repos/Dinorush/LTSRebalance/tags") self.assertEqual(data['name'], "1.0.9") - + def test_tag_on_third_page(self): data = verify_versions.retrieve_tag_info("0.10.6.3", "https://api.github.com/repos/Dinorush/LTSRebalance/tags") self.assertEqual(data['name'], "0.10.6.3") - + def test_unknown_tag(self): with self.assertRaises(LookupError) as context: verify_versions.retrieve_tag_info("unknown_tag", "https://api.github.com/repos/Alystrasz/Alystrasz.Parkour/tags") diff --git a/tools/verify_versions.py b/tools/verify_versions.py index b905e8c..6c06c20 100644 --- a/tools/verify_versions.py +++ b/tools/verify_versions.py @@ -26,7 +26,7 @@ def verify_all_mod_versions(): for version in manifesto[mod]['Versions']: distant_version = retrieve_tag_info(version['Version'], tags_url) local_hash = version['CommitHash'] - + # Compare manifesto commit hash with repository hash if local_hash == distant_version['commit']['sha']: print('\t✔️ v{}'.format(version['Version']))