Re: Heroku testing

2024-06-23 Thread Reddy Tintaya
Short answer: Create your test db the same way you created the one that your application already uses. Run your tests using the keep db flag: python manage.py test --keepdb or —reuse-db in case you are using pytest https://pytest-django.readthedocs.io/en/latest/database.html#reuse-db-reuse-the-t

Heroku testing

2024-06-23 Thread Gabriel Soler
Dear all I am doing my first deployment and using heroku. I am using the eco tier and connected a postgres database. When I try to run tests with heroku CLI it tells me I am not allowed to create a database. As Django creates a database and destroys it after, I wonder how you have solved this i