Remove unneeded function
This commit is contained in:
@ -5,13 +5,7 @@ import tempfile
|
||||
from platformdirs import user_data_dir
|
||||
from reader import Reader
|
||||
|
||||
from discord_rss_bot.settings import (
|
||||
data_dir,
|
||||
default_custom_message,
|
||||
get_db_location,
|
||||
get_reader,
|
||||
get_webhook_for_entry,
|
||||
)
|
||||
from discord_rss_bot.settings import data_dir, default_custom_message, get_db_location, get_reader
|
||||
|
||||
|
||||
def test_get_db_location() -> None:
|
||||
@ -72,9 +66,6 @@ def test_get_webhook_for_entry() -> None:
|
||||
custom_reader.add_feed("https://www.reddit.com/r/movies.rss")
|
||||
custom_reader.update_feed("https://www.reddit.com/r/movies.rss")
|
||||
|
||||
for entry in custom_reader.get_entries():
|
||||
assert get_webhook_for_entry(custom_reader=custom_reader, entry=entry) == ""
|
||||
|
||||
# Add a webhook to the database.
|
||||
custom_reader.set_tag("https://www.reddit.com/r/movies.rss", "webhook", "https://example.com") # type: ignore
|
||||
our_tag: str = custom_reader.get_tag("https://www.reddit.com/r/movies.rss", "webhook") # type: ignore
|
||||
|
Reference in New Issue
Block a user