fix: strip PostgreSQL server_default from email_inbound_token for SQLite tests
This commit is contained in:
@@ -25,6 +25,7 @@ def _populate_email_inbound_token(mapper, connection, target):
|
|||||||
def engine():
|
def engine():
|
||||||
"""In-memory SQLite engine for unit tests."""
|
"""In-memory SQLite engine for unit tests."""
|
||||||
eng = create_engine("sqlite:///:memory:")
|
eng = create_engine("sqlite:///:memory:")
|
||||||
|
User.__table__.c.email_inbound_token.server_default = None
|
||||||
Base.metadata.create_all(eng)
|
Base.metadata.create_all(eng)
|
||||||
yield eng
|
yield eng
|
||||||
eng.dispose()
|
eng.dispose()
|
||||||
|
|||||||
Reference in New Issue
Block a user