Skip to content

fix: fix and re-enable integration tests - #418

Merged
satterly merged 1 commit into
masterfrom
fix/integration-tests
Mar 29, 2026
Merged

satterly merged 1 commit into
masterfrom
fix/integration-tests

Conversation

@satterly

Copy link
Copy Markdown
Member

Summary

  • Remove deprecated jinja2.ext.autoescape extension from integrations/mailer/mailer.py (same fix as [Issue-Fix] jinja2.ext.autoescape extension #408 but for the integration, not the plugin)
  • Fix KeyError crash in validate_rules() when a rule field is missing the regex key
  • Fix broken test assertions: called_once_with -> assert_called_once_with, mock os.path.dirname properly, correct expected return value
  • Re-enable the "Unit Test Integrations" CI step in both postgres and mongodb jobs (disabled since commit 4ba3682)

Fixes #391

Test plan

  • All 16 integration tests pass locally
  • CI should now run integration tests and pass

🤖 Generated with Claude Code

@satterly
satterly force-pushed the fix/integration-tests branch from 075c284 to ac9f545 Compare March 29, 2026 16:07
- Remove deprecated jinja2.ext.autoescape extension from mailer.py
  (autoescape=True is already set as a keyword argument)
- Fix KeyError in validate_rules when a rule field is missing 'regex'
  by adding a break guard after the inner validation loop
- Fix test_rules_dont_exist and test_rules_parsing: use
  assert_called_once_with instead of called_once_with, mock
  os.path.dirname properly, and fix expected return value
- Re-enable integration test CI step in both postgres and mongodb jobs

Fixes #391

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@satterly
satterly force-pushed the fix/integration-tests branch from ac9f545 to d145bb5 Compare March 29, 2026 16:09
@satterly
satterly merged commit 4f3d428 into master Mar 29, 2026
8 checks passed
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.

Unit tests for integrations are failing

1 participant