pytest-dev / pytest-dev/pytest-django
Trying to set up a fresh unmigrated database for each tests in a specific class
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm trying to test a new feature related to migrations, In order to do so I need a clear and unmigrated DB for each test in the tests class.
how can I achieve that with this plugin?
note that for the rest of my tests I'm using a migrated test DB using django_db_setup.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with django_db_setup and the plugin's migration-related test setup. Determine whether a fresh, unmigrated database can be isolated for every test in one class while the remaining tests use the migrated test database; done means documenting or enabling that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- database, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100