Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Implemented four new tests for actions_for() in bot/exts/filtering/_filter_lists/extension.py #6 #3276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zubair-y
Copy link

@zubair-y zubair-y commented Feb 21, 2025

Added four tests to improve branch coverage for actions_for:

  1. Verify disallowed .py files set PY_EMBED_DESCRIPTION and are flagged.
  2. Verify disallowed text-like files (e.g., .txt) set TXT_EMBED_DESCRIPTION.
  3. Ensure that in SNEKBOX mode, text-like files are not blocked (no embed set).
  4. Confirm early return when ctx.message is None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant