﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33739	Migration on the test database doesn't work	ThalusA	nobody	"""Any migrations will also be applied in order to keep it up to date."" https://docs.djangoproject.com/en/4.0/topics/testing/overview/#the-test-database-1

The statement above is false, I will explain why.
First of all, here are all my versions:
- PostgreSQL 14.2 (with PostGIS 3.2)
- Django 4.0.4

I'm using unitary tests for my app using Django's TestCase. It is detected nicely, everything works according to plan except for one thing.

When I run `./manage.py test`, Django creates another database called `test_administrator` because my database name is `administrator` but in this database, there is only the table for PostGIS data, and not all the models from `administrator` which are created using `./manage.py migrate`.

My temporary fix is to run `./manage.py migrate` on the database `test_administrator` and run the command `./manage.py test` with the flag to keep the database because it deletes it each time I run it, elsewhere.

It would be lovely to have a fix on this issue."	Bug	closed	Testing framework	4.0	Normal	invalid	postgres unittest		Unreviewed	0	0	0	0	0	0
