Tests: add test project
* manage.py file at the root of the project * targetting the project located at tests/test_project/settings.py That allows testing the linter through just calling it on the project itself. Using the new method coming soon: `python manage.py lintmigrations`
This commit is contained in:
1 parent
fdd6b9b06a
commit
26ed4ecf62
85 files changed
+843
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# Generated by Django 2.1.4 on 2019-03-21 20:40
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = []
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="B",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("null_field", models.IntegerField()),
|
||||
],
|
||||
)
|
||||
]
|
||||
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 2.1.4 on 2019-03-21 20:41
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
import django_migration_linter as linter
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [("app_ignore_migration", "0001_initial")]
|
||||
|
||||
operations = [
|
||||
linter.IgnoreMigration(),
|
||||
migrations.AddField(
|
||||
model_name="b",
|
||||
name="null_field_real",
|
||||
field=models.IntegerField(default=1),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
Whitespace-only changes.
Reference in new issue
Block a user