pytest-dev / pytest-dev/pytest-django

Add a parameter to display migrations

Open
#496 3 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently, when running the tests, the migrations are not displayed as they are applied. Instead, the first test waits until the migration is completed.

A way of showing the migrations as they are applied (just like the regular Django test suite does) will be useful.

This is related as well with issue #306, as it will be a good place to show errors in migrations.

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 by tracing how pytest-django invokes Django migrations during the test run and compare that behavior with Django's regular test suite. Identify the existing configuration or command-line parameter entry point, then verify that migrations are displayed as they are applied and that migration errors are visible as described in issue #306.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.