From 7c505b67cef63b1efab2d8b02b708684f0d9aaeb Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 18 Jun 2024 18:05:59 -0400 Subject: [PATCH] add TTS expects --- test/signs/realtime_test.exs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/signs/realtime_test.exs b/test/signs/realtime_test.exs index 6b29ccb5d..a3828a241 100644 --- a/test/signs/realtime_test.exs +++ b/test/signs/realtime_test.exs @@ -53,8 +53,6 @@ defmodule Signs.RealtimeTest do tick_read: 1, read_period_seconds: 100, pa_message_plays: %{} - read_period_seconds: 100, - pa_message_plays: %{} } @mezzanine_sign %{ @@ -1793,7 +1791,9 @@ defmodule Signs.RealtimeTest do end test "Plays message if no prior plays" do - expect_audios([{:ad_hoc, {"A PA Message", :audio_visual}}]) + expect_audios([{:ad_hoc, {"A PA Message", :audio_visual}}], [ + {"A PA Message", [{"A PA Message", "", 3}]} + ]) pa_message = %PaMessages.PaMessage{ id: 1, @@ -1805,7 +1805,9 @@ defmodule Signs.RealtimeTest do end test "Plays message if interval has passed" do - expect_audios([{:ad_hoc, {"A PA Message", :audio_visual}}]) + expect_audios([{:ad_hoc, {"A PA Message", :audio_visual}}], [ + {"A PA Message", [{"A PA Message", "", 3}]} + ]) pa_message = %PaMessages.PaMessage{ id: 1,