#137 Deployment: **Upgrade to Liquidsoap 2.4**: code has been adapted to work with liquidsoap 2.4 Co-authored-by: bkfox <thomas bkfox net> Reviewed-on: #138
This commit is contained in:
@ -20,7 +20,7 @@ def monitor(streamer):
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def diffusion(program, episode, sound):
|
||||
def diffusion(program, episode, episode_sound):
|
||||
return baker.make(
|
||||
models.Diffusion,
|
||||
program=program,
|
||||
@ -33,10 +33,10 @@ def diffusion(program, episode, sound):
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def source(monitor, streamer, sound, diffusion):
|
||||
def source(monitor, streamer, episode_sound, diffusion):
|
||||
source = next(monitor.streamer.playlists)
|
||||
source.uri = sound.file.path
|
||||
source.episode_id = sound.episode_id
|
||||
source.uri = episode_sound.sound.file.path
|
||||
source.episode_id = episode_sound.episode_id
|
||||
source.air_time = diffusion.start + tz.timedelta(seconds=10)
|
||||
return source
|
||||
|
||||
@ -185,7 +185,7 @@ class TestMonitor:
|
||||
monitor.trace_tracks(log)
|
||||
|
||||
@pytest.mark.django_db(transaction=True)
|
||||
def test_handle_diffusions(self, monitor, streamer, diffusion, sound):
|
||||
def test_handle_diffusions(self, monitor, streamer, diffusion, episode_sound):
|
||||
interface(
|
||||
monitor,
|
||||
{
|
||||
|
Reference in New Issue
Block a user