mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-19 04:40:32 -05:00
07387ebf2e
Detect SQLAlchemy 2.0 flush execution via _warn_on_events in Settings._session_in_flush so get_settings() does not add/commit during flush_context.execute(), avoiding ResourceClosedError in invoice currency smoke tests. Payment smoke tests now set a password on factory users and submit it on login, matching local AUTH_METHOD requirements (fixes 302 to login on /payments). Allow HTTP 403 in test_non_admin_cannot_access_roles when the app denies non-admins directly instead of redirecting with 200.