Skip to content
Snippets Groups Projects
Verified Commit 63906de2 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

refactor: move owned_show fixture -> test_playlists

parent 7b814f72
No related branches found
No related tags found
No related merge requests found
......@@ -193,16 +193,6 @@ def radio_settings(fallback_show) -> RadioSettings:
)
@pytest.fixture
def owned_show(common_user1, show) -> Show:
"""Show owned by a common user"""
show.owners.set([common_user1])
show.save()
return show
@pytest.fixture
def owned_show_once_timeslot(common_user1, show, once_schedule) -> TimeSlot:
"""Timeslot of a once schedule for a show owned by a common user"""
......
......@@ -76,6 +76,16 @@ def playlist_entry(playlist) -> PlaylistEntry:
return PlaylistEntryFactory(playlist=playlist)
@pytest.fixture
def owned_show(common_user1, show) -> Show:
"""Show owned by a common user"""
show.owners.set([common_user1])
show.save()
return show
def test_create_playlist(
user_with_playlist_perms, api_client_playlist_perms, owned_show_playlist_perms
):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment