Session scoped fixtures for avoiding recreation

Open
#459 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, python

Research direction

Start by checking the existing pytest-celery documentation and the test-cluster lifecycle, then compare the requested session-scoped behavior with the pytest-docker-tools setup mentioned in the issue. Done means documenting whether cluster reuse is supported and explaining the configuration or limitation clearly.

Written by the indexing model from the issue text.

Description

documentation

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

Dominant language
Python
Stars
83
Forks
18
Avg merge
4h 13m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from celery/pytest-celery

All issues in celery/pytest-celery

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.