osuAkatsuki / bancho.py

An osu! server for the generic public, optimized for maintainability in modern python
https://akatsuki.gg
MIT License
201 stars 125 forks source link

misc: spin up a temporary database for integration test suite #577

Closed cmyui closed 4 months ago

cmyui commented 4 months ago

Currently, the integration test suite reads & writes to the configured database in the .env file. This is undesirable for many reasons -- two of the main ones being:

Instead, when the integration test suite is starting up, we should spin up a new database, run the migrations against it, use that during tests, then spin it down after the test suite has run. Every new run of the test suite should have it's own isolated/new temporary database to work with.

This is a super high value task -- as it paves the way for our integration test suite to grow in reliability and re-usability!