Skip to content

Comments

Fix quarantine logging and add comprehensive tests#22

Merged
jslay88 merged 1 commit intomainfrom
jslay/quarantine-log
Jan 7, 2026
Merged

Fix quarantine logging and add comprehensive tests#22
jslay88 merged 1 commit intomainfrom
jslay/quarantine-log

Conversation

@jslay88
Copy link
Contributor

@jslay88 jslay88 commented Jan 7, 2026

This PR fixes failing unit tests related to quarantine logging functionality and adds comprehensive test coverage.

Changes

  • Fixed datetime.datetime.utcnow typo to use datetime.now(timezone.utc)
  • Fixed get_channel call to use positional argument instead of keyword argument
  • Added QUARANTINE_LOG_CHANNEL_ID constant
  • Added _log_quarantine method to log quarantine events with embed
  • Added comprehensive tests for quarantine logging functionality

Test Results

  • All 139 tests passing
  • 92% code coverage
  • Fixed 3 previously failing tests

- Fix datetime.datetime.utcnow() typo to use datetime.now(timezone.utc)
- Fix get_channel call to use positional argument instead of keyword
- Add QUARANTINE_LOG_CHANNEL_ID constant
- Add _log_quarantine method to log quarantine events with embed
- Add comprehensive tests for quarantine logging functionality
- All 139 tests passing with 92% code coverage
@jslay88 jslay88 merged commit d79b8f4 into main Jan 7, 2026
4 checks passed
@jslay88 jslay88 deleted the jslay/quarantine-log branch January 7, 2026 03:59
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