django cannot create test database
I created a django project and a testCase with setUpTestData containing several objects.create. when I debug the test , I get the following error : I get the following error : Got an error creating the test database: (1044, "Access denied for user 'odile'@'localhost' to database 'test_recettes_database'")
I am using mySQL and my django settings module is using a .env file in my virtual environment. Any help will be welcomed
Comments
It seems it is due to mysql on Ubuntu which does not allow the creation of the database unless the user is connected as sudo. It seems therefore that Wing has nothing to do with it. I need to create the database outside and tell django test to load the database with my test data. But how can I do this?