Skip to content

Commit

Permalink
test: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed Feb 25, 2024
1 parent 5004daa commit d125c05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/spotted/config/yaml/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ post:
delete_anonymous_comments: true
reject_after_autoreply: true
autoreplies_per_page: 6
blacklist_messages: ["myspamword1", "myspamword2"]

token: ""
bot_tag: "@bot_tag"
8 changes: 8 additions & 0 deletions tests/integration/test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,14 @@ async def test_spam_comment_msg(
"""Tests the replacement of an anonymous comment.
Copies the message and deletes the original
"""
Config.override_settings(
{
"post": {
"blacklist_messages": ["myspamword1", "myspamword2"]
},
}
)

for word in Config.post_get("blacklist_messages"):
spam_comment = await telegram.send_message(
f"a message with the {word} will be deleted",
Expand Down

0 comments on commit d125c05

Please sign in to comment.