Skip to content

django_db_setup runs inside transactional_db transaction #595

Open
@OrangeDog

Description

@OrangeDog

If the first db test that gets run happens to have transactional_db (or django_db(transaction=True)) then all subsequent db tests will fail.

This appears to be because the db setup (migrations etc.) are all rolled-back and will not run again because django_db_setup is session-scoped.

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