Skip to content

Is there a way to exclude test db setup from the timeout? #136

@aqeelat

Description

@aqeelat
platform darwin -- Python 3.9.13, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /Users/aqeelat/lab/venv/bin/python
cachedir: .pytest_cache
django: settings: project.settings (from env)
rootdir: /Users/aqeelat/project, configfile: pyproject.toml
plugins: xdist-2.5.0, forked-1.4.0, timeout-2.1.0, celery-4.4.7, django-4.5.2, cov-3.0.0
timeout: 300.0s
timeout method: signal
timeout func_only: False

So, my issue is:
The database migration takes about 2.5 minutes. This means that I have to set my timeout to migration time + timeout. This timeout will apply to all tests. Is there a way to exclude the migrations from the timeout?

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