Skip to content

Commit e78574d

Browse files
committed
add a download url validation test to validator.py
1 parent 7559d3e commit e78574d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/src/validator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import uuid
33

44
from _utils import (check_url, clean, get_new_plugin_submission_ids, get_plugin_file_paths, get_plugin_filenames,
5-
icon_path, id_name, language_list, language_name, plugin_reader)
5+
icon_path, id_name, language_list, language_name, plugin_reader, github_download_url_regex, url_download)
66

77
plugin_infos = plugin_reader()
88

@@ -52,3 +52,7 @@ def test_submitted_plugin_id_is_valid_uuid():
5252
outcome = False
5353

5454
assert outcome is True, f"The submission plugin ID {id} is not a valid v4 UUID"
55+
56+
def test_valid_download_url():
57+
for info in plugin_infos:
58+
assert github_download_url_regex.fullmatch(info[url_download]), f" The plugin {info['Name']}-{info['ID']} does not have a valid download url: {info[url_download]}"

0 commit comments

Comments
 (0)