This is best described by a tiny example: https://gitlab.com/offby1/django-tutorial/-/tree/8da79f6bab5edd98a33292a4370b9afee8e73b3b
If you clone that, and run poetry install --no-root, and then DJANGO_SETTINGS_MODULE=django_project.settings poetry run pytest demo/tests.py --create-db, you'll see the test fail.
My question is: why does it behave that way? Why doesn't the test pass? Is this behavior documented somewhere?