Refactor send_entry_to_discord function to require a reader parameter and update related tests

This commit is contained in:
Joakim Hellsén 2026-03-15 20:47:41 +01:00
commit 94d5935b78
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
3 changed files with 12 additions and 15 deletions

View file

@ -188,7 +188,7 @@ def test_send_entry_to_discord_youtube_feed(
mock_discord_webhook.return_value = mock_webhook
# Call the function
send_entry_to_discord(mock_entry)
send_entry_to_discord(mock_entry, mock_reader)
# Assertions
mock_create_embed.assert_not_called()