forked from enviPath/enviPy
comments
This commit is contained in:
@ -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})
|
||||
|
||||
Reference in New Issue
Block a user