You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of our projects, we encountered an issue with a test case. The problem was identified in the following code snippet:
`async def async_get_db() -> AsyncSession:
async_session = local_session
async with async_session() as db:
yield db
db.commit()`
The last db.commit() statement was saving data to the database during test execution. Upon removing this line, the data was no longer saved during testing, and the test case started working as expected. It's worth noting that regular database data saving continued to function properly.
No description provided.
The text was updated successfully, but these errors were encountered: