thenewboston-blockchain / Bank

Bank for thenewboston digital currency.
https://thenewboston.com
MIT License
87 stars 42 forks source link

Fix PytestWarning: Error when trying to teardown test databases: Runt… #98

Closed makaramkd closed 3 years ago

makaramkd commented 3 years ago

Fix PytestWarning: Error when trying to teardown test databases: RuntimeError("generator didn't stop after throw()") #95

makaramkd commented 3 years ago

@makaramkd that doesn't solve the problem at all ... and it actually brings issues, since its much better to delete databases after a test run

I agree that its better to drop the database, but I think that this is also a way because the flags: --reuse-db and --create-db are eliminating the issue as the tests are reusing the test database or creating a new database if there is a change in the schema. So now Ill try to drop the database after the test.