pytest-dev / pytest-dev/pytest-django

Global parametrized DJANGO_SETTINGS_MODULE and xdist

Open
#1,159 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.5k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

I was looking for a way to launch all tests with different DJANGO_SETTINGS_MODULE is that possible through this library?

specifically running all of these tests,
since now they run sequentially they can't really benefit from using xdist,
and I was looking into a way to parallelise all tests not only a run,
so I generating multiple versions of every test with different django settings seemed like an interesting option.

Could you help me understand how to implement it if it's possible at all with pytest-django?

Contributor guide

Open the contributing guide

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.

Research direction

Start with the test configuration in setup.cfg, especially the linked test selection, and read how pytest-django handles DJANGO_SETTINGS_MODULE alongside xdist. Determine whether all tests can be generated for multiple settings and run in parallel, then verify the expected behavior across the full test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.