This commit is contained in:
@@ -17,6 +17,7 @@ from project_sources import ( # noqa: E402
|
||||
metadata_digest,
|
||||
parse_record,
|
||||
split_list,
|
||||
taxonomy_label_items,
|
||||
validate_image,
|
||||
validate_url,
|
||||
)
|
||||
@@ -61,6 +62,12 @@ class ProjectSourceTests(unittest.TestCase):
|
||||
with self.assertRaises(RepositoryNotPublicError):
|
||||
fetch_json("https://git.example.test/api/repo", require_public=True)
|
||||
|
||||
def test_unapproved_labels_remain_visible_without_becoming_tags(self) -> None:
|
||||
items = taxonomy_label_items(
|
||||
["TypeScript", "Unlisted Tool"], ["typescript"]
|
||||
)
|
||||
self.assertEqual(items, ["typescript\tTypeScript", "-\tUnlisted Tool"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user