Added better dropdown for choosing licenses
This commit is contained in:
parent
a3ad476c88
commit
45142bf24b
5 changed files with 74 additions and 7 deletions
|
|
@ -13,6 +13,18 @@ def test_track_license_mutation(factories, now):
|
|||
assert track.license.code == "cc-by-sa-4.0"
|
||||
|
||||
|
||||
def test_track_null_license_mutation(factories, now):
|
||||
track = factories["music.Track"](license="cc-by-sa-4.0")
|
||||
mutation = factories["common.Mutation"](
|
||||
type="update", target=track, payload={"license": None}
|
||||
)
|
||||
licenses.load(licenses.LICENSES)
|
||||
mutation.apply()
|
||||
track.refresh_from_db()
|
||||
|
||||
assert track.license is None
|
||||
|
||||
|
||||
def test_track_title_mutation(factories, now):
|
||||
track = factories["music.Track"](title="foo")
|
||||
mutation = factories["common.Mutation"](
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue