fix: strip PostgreSQL server_default from email_inbound_token for SQLite tests

This commit is contained in:
2026-05-04 18:04:49 +00:00
committed by Coupon Carl [agent]
parent 5363ba2fbf
commit fe0a7fac3e
+1
View File
@@ -25,6 +25,7 @@ def _populate_email_inbound_token(mapper, connection, target):
def engine():
"""In-memory SQLite engine for unit tests."""
eng = create_engine("sqlite:///:memory:")
User.__table__.c.email_inbound_token.server_default = None
Base.metadata.create_all(eng)
yield eng
eng.dispose()