This commit is contained in:
Liam Brydon
2025-11-10 14:57:31 +13:00
parent 42b1e77fb9
commit 94abfc90b5
3 changed files with 6 additions and 4 deletions

View File

@ -29,7 +29,7 @@ class PackageViewTest(TestCase):
add_to_group=True,
is_active=True,
)
# Create the default license set.
cc_strings = ["by", "by-nc", "by-nc-nd", "by-nc-sa", "by-nd", "by-sa"]
for cc_string in cc_strings:
new_license = License()
@ -197,6 +197,7 @@ class PackageViewTest(TestCase):
self.assertIsNone(p.license)
# Test other possible licenses
cc_strings = ["by", "by-nc", "by-nc-nd", "by-nc-sa", "by-nd", "by-sa"]
for cc_string in cc_strings:
self.client.post(package_url, {"license": cc_string})