This commit is contained in:
@@ -14,6 +14,7 @@ from project_sources import ( # noqa: E402
|
||||
RepositoryNotPublicError,
|
||||
append_fields,
|
||||
fetch_json,
|
||||
load_registry,
|
||||
metadata_digest,
|
||||
normalize_tag_value,
|
||||
parse_record,
|
||||
@@ -25,6 +26,10 @@ from project_sources import ( # noqa: E402
|
||||
|
||||
|
||||
class ProjectSourceTests(unittest.TestCase):
|
||||
def test_registry_feature_order_is_optional_and_numeric(self) -> None:
|
||||
site_root = Path(__file__).resolve().parents[1]
|
||||
self.assertEqual(load_registry(site_root)[0]["featured_order"], 10)
|
||||
|
||||
def test_registry_urls_must_be_public_https_without_credentials(self) -> None:
|
||||
self.assertEqual(
|
||||
validate_url("https://git.example.test/owner/repo.git", "repository"),
|
||||
|
||||
Reference in New Issue
Block a user