listenbrainz-server
listenbrainz-server copied to clipboard
Speed up LB tests
To speed up LB tests: instead of creating and dropping tables after each test, delete all the data from the tables. This patch approximately halves the overall runtime for tests.
Other than that, the changes in the PR are to update tests because the various autoincrement sequences are not reset between tests. To fix the tests use the id from the row returned when the data is inserted in the db.