Skip to content

Fix stale SAML backend tests#620

Merged
JackWilb merged 1 commit into
mainfrom
codex/fix-saml-backend-tests
Jul 13, 2026
Merged

Fix stale SAML backend tests#620
JackWilb merged 1 commit into
mainfrom
codex/fix-saml-backend-tests

Conversation

@JackWilb

Copy link
Copy Markdown
Member

Summary

  • remove tests and imports for the deleted SanguineSaml2Backend
  • keep coverage focused on the project-owned SAML configuration builder
  • align the test redirect default with the current /api production default

Root cause

Commit f0d26cf7 removed the broken custom SAML backend and switched production to djangosaml2.backends.Saml2Backend, but its tests continued importing and exercising the deleted class. Once that collection error was removed, the suite exposed a second stale expectation for the old / redirect default.

Validation

  • poetry check --lock
  • python manage.py check --settings=api.test_settings
  • python manage.py makemigrations --check --dry-run --settings=api.test_settings
  • python manage.py test --settings=api.test_settings (16 tests)
  • git diff --check

@JackWilb
JackWilb marked this pull request as ready for review July 13, 2026 20:53
@JackWilb
JackWilb merged commit ed7bba1 into main Jul 13, 2026
1 check passed
@JackWilb
JackWilb deleted the codex/fix-saml-backend-tests branch July 13, 2026 20:54
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