Skip to content

The --keepdb flag is not respected for test databases #104

@boc-tdunn

Description

@boc-tdunn

The django docs state that the --keepdb flag should keep the test database from being destroyed after a test run, and that subsequent test runs should not recreate the test database if it exists already.

https://docs.djangoproject.com/en/5.1/topics/testing/overview/#the-test-database

For reference the POSTGRES django adapter does this.

https://github.com/django/django/blob/main/django/db/backends/postgresql/creation.py#L42-L45

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions