django-test-migrations
django-test-migrations copied to clipboard
Test django schema and data migrations, including migrations' order and best practices.
Bumps [safety](https://github.com/pyupio/safety) from 2.2.1 to 2.3.1. Release notes Sourced from safety's releases. 2.3.1 No release notes provided. 2.3.0 What's Changed Safety Alerts: GitHub PRs and GitHub issues support by @cb22...
Hi, I just stumbled on a weird little edge case. I am migrating a ManyToMany field over to a through model, and specifying both `through` and `through_fields` on the ManyToMany...
# Context I have a project with multiple apps (Ex: App A and app B). I once in a while code migrations with tests based on the state of the...
Hi, I couldn't find anything about this issue so I thought I'd post it here. I have a test like this: ```python @pytest.mark.django_db def test_0104_migration(migrator_factory): migrator = migrator_factory("default") old_state =...
I have a migration with a collation: Ex: ```python # Generated by Django 4.1.5 on 2023-02-04 09:26 from django.contrib.postgres.operations import CreateCollation from django.db import migrations class Migration(migrations.Migration): initial = True...
I'm not really sure on what to blame on this, because it can be either pants, pytest or django-test-migrations I'm trying to fix a problem where the migration test ends...
https://stackoverflow.com/questions/75053308/django-test-migrations-failing-when-using-multiple-postgres-schemas-in-django
We added a [data migration](https://docs.djangoproject.com/en/dev/howto/writing-migrations/) and are testing it using django-test-migrations. When running pytest with `--create-db` everything works fine. But when running it with `--reuse-db` the data added by the...
When running migrations in the commandline, it is possible to use just `` `` as arguments. However, when defining MigrationTargets for `apply_initial_migration` or `apply_tested_migration`, the full name is required. Having...