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:
David Wobrock committed 2019-05-12 15:32:57 +02:00
1 parent fdd6b9b06a
commit 26ed4ecf62
85 files changed
+843

No files matched your search

Whitespace-only changes.
+3
View File
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
+5
View File
@@ -0,0 +1,5 @@
from django.apps import AppConfig
class AppCorrectConfig(AppConfig):
name = "app_correct"
@@ -0,0 +1,28 @@
# Generated by Django 2.1.4 on 2019-03-19 21:08
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="A",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("null_field", models.IntegerField(null=True)),
],
)
]
@@ -0,0 +1,14 @@
# Generated by Django 2.1.4 on 2019-03-19 21:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("app_correct", "0001_initial")]
operations = [
migrations.AddField(
model_name="a", name="new_null_field", field=models.IntegerField(null=True)
)
]
Whitespace-only changes.
+6
View File
@@ -0,0 +1,6 @@
from django.db import models
class A(models.Model):
null_field = models.IntegerField(null=True)
new_null_field = models.IntegerField(null=True)
+3
View File
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
+3
View File
@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.