Skip to content

Session scoped fixtures for avoiding recreation #459

@TonMarton

Description

@TonMarton

Checklist

  • I have checked the issues list
    for similar or identical bug reports.
  • I have checked the pull requests list
    for existing proposed fixes.
  • I have checked the commit log
    to find out if the bug was already fixed in the main branch.
  • I have included all related issues and possible duplicate issues in this issue
    (If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

  • None

Possible Duplicates

  • None

Description

I am a new user of the package and I really like it, but I am not able to figure out a fundamental question through the documentation. How can I prevent the test cluster from getting recreated between test runs in the same session.

To be fair, I don't see any part of documentation that claims that this is possible. I just thought, when reading the docs and writing my tests, that session based setup is possible, because otherwise would be a bit too slow.

Can you please confirm if this is indeed not possible with pytest-celery? And if so, should I just implement my own test setup using pytest-docker-tools? I think I could also write my test cases in one test function, but I would like to avoid it.

Suggestions

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions