fccn / nau-richie-site-factory

Site factory to build NAU web sites based on https://github.com/openfun/richie
https://www.nau.edu.pt/
GNU Affero General Public License v3.0
0 stars 1 forks source link

🐛(test) fix run local tests #248

Closed igobranco closed 3 months ago

igobranco commented 3 months ago

After the Richie upgrade, with its Django upgrade, etc. it was no longer possible to run the local backend tests with the Makefile target make test-back. This fixes it, making the project and its tests to use the root MySQL database user, instead of using the an application user. So when the tests are starting up, it can create the new test database on the fly.

fixes fccn/nau-richie-site-factory#250

igobranco commented 3 months ago

@sandroscosta the tests will be running on MySQL on a test database. So to make the tests running fast on backend is important to use the --reuse-db option. See the Makefile.