Skip to content

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

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

Closed
wants to merge 1 commit into 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.

Copy link
Member

@jb3 jb3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is something you're able to update to the latest changes from main, I'm happy to merge this! Sorry for the delayed review!

@jb3
Copy link
Member

jb3 commented Jul 27, 2025

Closing for now as this looks to be for a concluded school project, and I'm assuming this won't be updated.

@jb3 jb3 closed this Jul 27, 2025
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.

2 participants