From 4b6c4ac369fab6668be2df0b1f83c7dab3309dcf Mon Sep 17 00:00:00 2001 From: Julien Moura Date: Tue, 3 Dec 2024 16:10:21 +0100 Subject: [PATCH] fix(test): make sure dl_url is a string --- tests/test_cli_upgrade.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/test_cli_upgrade.py b/tests/test_cli_upgrade.py index 85a22298..84d7110e 100644 --- a/tests/test_cli_upgrade.py +++ b/tests/test_cli_upgrade.py @@ -80,7 +80,16 @@ def test_release_assets_download_links(self): for os in SUPPORTED_OPERATING_SYSTEMS_CODENAMES ] self.assertTrue(len(dl_hyperlinks), 3) - self.assertTrue(all([dl_url.startswith("https") for dl_url in dl_hyperlinks])) + + self.assertTrue( + all( + [ + dl_url.startswith("https") + for dl_url in dl_hyperlinks + if isinstance(dl_url, str) + ] + ) + ) # #############################################################################