pytest-django icon indicating copy to clipboard operation
pytest-django copied to clipboard

A Django plugin for pytest.

Results 185 pytest-django issues
Sort by recently updated
recently updated
newest added
trafficstars

The `live_server` fixture requires `transactional_db`, but it does so at runtime, i.e. after the `pytest_collection_modifyitems()` hook is called, so it was originally sent to the last test group.

[Related PR](https://github.com/django/django/pull/19380) When managing multiple databases—over six in our case—we don’t focus on tracking queries for each one individually (e.g., db1 vs. db2 vs. db3). Instead, our priority is the...

hi i wrote a custom migration file to add some data to a porject it looks like this: ```py from django.db import migrations def make_teacher_group(apps, schema_editor): Group = apps.get_model("auth", "Group")...

Hi All! I have several databases in my project and one of them is external. I know, it's bad practice but that's how it is. And I need tests for...

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](https://github.com/jazzband/django-redis/blob/2c7aae9c780fde3eebb5d96b4d9b56e29c563eb4/setup.cfg#L88), since now they run sequentially...