-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests should be performed on a SQLite test db #1
Comments
Maybe just overriding the dependency will be a simpler solution with the same benefits |
In one of our projects, we encountered an issue with a test case. The problem was identified in the following code snippet:
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. |
Hey, @mithun2003, thanks! I'll change it. I should also fix the tests and do this migration to SQLite as soon as possible, trying to find the time |
hey @igorbenav |
Tbh I changed my mind some time after self assigning, which is why I never actually did this. Indeed I think the best way is creating a test db of the same type |
No description provided.
The text was updated successfully, but these errors were encountered: