Skip to content

pytest not creating test DB #131

Closed
Closed
@maryokhin

Description

@maryokhin

There's a big chance that I'm not doing something right, because I am very new to pytest, but basically I am using the exact same test DB settings as for unittest, but pytest is giving me django.db.utils.OperationalError: FATAL: database "database" does not exist https://gist.github.com/maryokhin/0749d31ef9b273b13352. Got tired of banging my head, so wanted to ask, maybe someone knows what's up.

As a subquestion, when using pytest or pytest-django decorators, PyCharm always warns of unresolved references, is it because under the hood they use some dynamic stuff it can't detect?

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