Skip to content

Provide a way to detect if Django is running tests #333

Closed
@santiagobasulto

Description

@santiagobasulto

It'd be nice to do something like:

if settings.TESTING:
    print("py.test is being ran")

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