Skip to content

Conversation

@cofin
Copy link
Member

@cofin cofin commented Jan 26, 2026

Major code cleanup and overdo review

@cofin cofin requested review from a team as code owners January 26, 2026 03:50
cofin added 13 commits January 26, 2026 05:24
…ess users

- Update MfaDisableDialog to check user.hasPassword
- Show OAuth "Verify with [Provider]" button for passwordless users
- Add useInitiateDisableMfaOAuth hook for OAuth redirect flow
- Set up Vitest testing infrastructure for frontend
- Add 6 tests covering password and OAuth verification paths
- Fix AdminTeamDetail schema to include memberCount and ownerEmail
  (converted from @Property to fields using __post_init__)
- Add anyio and pytest-anyio to test dependencies
- Convert session-scoped async fixtures (engine, db_schema) to sync
- Convert _patch_db fixture to sync (no async work needed)
- Add pytestmark = pytest.mark.anyio to all test files and conftest files

Fixes CI test failures caused by pytest 9's stricter handling of
async fixtures without proper plugin support.
@sonarqubecloud
Copy link

@cofin cofin merged commit 4fab0fb into main Jan 27, 2026
4 checks passed
@cofin cofin deleted the chore/cleanup branch January 27, 2026 00: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.

2 participants