diff --git a/tests/test_project_fixtures/test_correct_project/.gitignore b/tests/test_project_fixtures/test_correct_project/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_correct_project/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_correct_project/apps/__init__.py b/tests/test_project_fixtures/test_correct_project/apps/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_correct_project/apps/test_app3/__init__.py b/tests/test_project_fixtures/test_correct_project/apps/test_app3/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_correct_project/apps/test_app3/admin.py b/tests/test_project_fixtures/test_correct_project/apps/test_app3/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_correct_project/apps/test_app3/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_correct_project/apps/test_app3/apps.py b/tests/test_project_fixtures/test_correct_project/apps/test_app3/apps.py deleted file mode 100644 index 7a1fd83..0000000 --- a/tests/test_project_fixtures/test_correct_project/apps/test_app3/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestApp3Config(AppConfig): - name = 'test_app3' diff --git a/tests/test_project_fixtures/test_correct_project/apps/test_app3/migrations/0001_initial.py b/tests/test_project_fixtures/test_correct_project/apps/test_app3/migrations/0001_initial.py deleted file mode 100644 index beaa780..0000000 --- a/tests/test_project_fixtures/test_correct_project/apps/test_app3/migrations/0001_initial.py +++ /dev/null @@ -1,21 +0,0 @@ -# Generated by Django 2.1.4 on 2019-01-04 20:55 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='C', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('not_null_field', models.IntegerField()), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_correct_project/apps/test_app3/migrations/__init__.py b/tests/test_project_fixtures/test_correct_project/apps/test_app3/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_correct_project/apps/test_app3/models.py b/tests/test_project_fixtures/test_correct_project/apps/test_app3/models.py deleted file mode 100644 index 0124f42..0000000 --- a/tests/test_project_fixtures/test_correct_project/apps/test_app3/models.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.db import models - -class C(models.Model): - not_null_field = models.IntegerField(null=False) diff --git a/tests/test_project_fixtures/test_correct_project/apps/test_app3/tests.py b/tests/test_project_fixtures/test_correct_project/apps/test_app3/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_correct_project/apps/test_app3/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_correct_project/apps/test_app3/views.py b/tests/test_project_fixtures/test_correct_project/apps/test_app3/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_correct_project/apps/test_app3/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_correct_project/manage.py b/tests/test_project_fixtures/test_correct_project/manage.py deleted file mode 100644 index 3390cc6..0000000 --- a/tests/test_project_fixtures/test_correct_project/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_correct_project/test_app1/__init__.py b/tests/test_project_fixtures/test_correct_project/test_app1/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_correct_project/test_app1/admin.py b/tests/test_project_fixtures/test_correct_project/test_app1/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app1/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_correct_project/test_app1/apps.py b/tests/test_project_fixtures/test_correct_project/test_app1/apps.py deleted file mode 100644 index 1dc36fd..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app1/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestApp1Config(AppConfig): - name = 'test_app1' diff --git a/tests/test_project_fixtures/test_correct_project/test_app1/migrations/0001_initial.py b/tests/test_project_fixtures/test_correct_project/test_app1/migrations/0001_initial.py deleted file mode 100644 index 681a3fc..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app1/migrations/0001_initial.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.7 on 2017-11-27 15:49 -from __future__ import unicode_literals - -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)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_correct_project/test_app1/migrations/0002_a_new_null_field.py b/tests/test_project_fixtures/test_correct_project/test_app1/migrations/0002_a_new_null_field.py deleted file mode 100644 index 010e2b1..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app1/migrations/0002_a_new_null_field.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.7 on 2017-11-27 15:49 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app1', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='a', - name='new_null_field', - field=models.IntegerField(null=True), - ), - ] diff --git a/tests/test_project_fixtures/test_correct_project/test_app1/migrations/__init__.py b/tests/test_project_fixtures/test_correct_project/test_app1/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_correct_project/test_app1/models.py b/tests/test_project_fixtures/test_correct_project/test_app1/models.py deleted file mode 100644 index f13a3bf..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app1/models.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.db import models - -class A(models.Model): - null_field = models.IntegerField(null=True) - new_null_field = models.IntegerField(null=True) diff --git a/tests/test_project_fixtures/test_correct_project/test_app1/tests.py b/tests/test_project_fixtures/test_correct_project/test_app1/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app1/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_correct_project/test_app1/views.py b/tests/test_project_fixtures/test_correct_project/test_app1/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app1/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_correct_project/test_app2/__init__.py b/tests/test_project_fixtures/test_correct_project/test_app2/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_correct_project/test_app2/admin.py b/tests/test_project_fixtures/test_correct_project/test_app2/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app2/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_correct_project/test_app2/apps.py b/tests/test_project_fixtures/test_correct_project/test_app2/apps.py deleted file mode 100644 index 13aa724..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app2/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestApp2Config(AppConfig): - name = 'test_app2' diff --git a/tests/test_project_fixtures/test_correct_project/test_app2/migrations/0001_foo.py b/tests/test_project_fixtures/test_correct_project/test_app2/migrations/0001_foo.py deleted file mode 100644 index 4f7ae75..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app2/migrations/0001_foo.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.7 on 2017-11-29 21:08 -from __future__ import unicode_literals - -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(null=True)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_correct_project/test_app2/migrations/__init__.py b/tests/test_project_fixtures/test_correct_project/test_app2/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_correct_project/test_app2/models.py b/tests/test_project_fixtures/test_correct_project/test_app2/models.py deleted file mode 100644 index 2633c55..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app2/models.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.db import models - -class B(models.Model): - null_field = models.IntegerField(null=True) diff --git a/tests/test_project_fixtures/test_correct_project/test_app2/tests.py b/tests/test_project_fixtures/test_correct_project/test_app2/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app2/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_correct_project/test_app2/views.py b/tests/test_project_fixtures/test_correct_project/test_app2/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_app2/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_correct_project/test_project/__init__.py b/tests/test_project_fixtures/test_correct_project/test_project/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_correct_project/test_project/settings.py b/tests/test_project_fixtures/test_correct_project/test_project/settings.py deleted file mode 100644 index 8944ada..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_project/settings.py +++ /dev/null @@ -1,133 +0,0 @@ -""" -Django settings for test_project project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os -import sys - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - -sys.path.insert(0, os.path.join(BASE_DIR, 'apps')) - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app1', - 'test_app2', - 'apps.test_app3', -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django_fake_database_backends.backends.mysql' - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_correct_project/test_project/urls.py b/tests/test_project_fixtures/test_correct_project/test_project/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_project/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_correct_project/test_project/wsgi.py b/tests/test_project_fixtures/test_correct_project/test_project/wsgi.py deleted file mode 100644 index aa66ac1..0000000 --- a/tests/test_project_fixtures/test_correct_project/test_project/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_deleted_migration_project/.gitignore b/tests/test_project_fixtures/test_deleted_migration_project/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/COMMIT_EDITMSG b/tests/test_project_fixtures/test_deleted_migration_project/git/COMMIT_EDITMSG deleted file mode 100644 index e513fa5..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/COMMIT_EDITMSG +++ /dev/null @@ -1,16 +0,0 @@ -Delete file and insert new - -# Please enter the commit message for your changes. Lines starting -# with '#' will be ignored, and an empty message aborts the commit. -# -# Date: Thu Jan 18 23:27:37 2018 +0100 -# -# On branch master -# Changes to be committed: -# deleted: test_app/migrations/0002_new_not_null_field.py -# new file: test_app/migrations/0003_new_nullable_field.py -# modified: test_app/models.py -# -# Untracked files: -# git/ -# diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/HEAD b/tests/test_project_fixtures/test_deleted_migration_project/git/HEAD deleted file mode 100644 index cb089cd..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/ORIG_HEAD b/tests/test_project_fixtures/test_deleted_migration_project/git/ORIG_HEAD deleted file mode 100644 index 70acf6c..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/ORIG_HEAD +++ /dev/null @@ -1 +0,0 @@ -154ecf6119325cc3b1f3f5a4e709bfbd61a4a4ba diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/config b/tests/test_project_fixtures/test_deleted_migration_project/git/config deleted file mode 100644 index eeb8dd7..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/config +++ /dev/null @@ -1,5 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = false - bare = false - logallrefupdates = true diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/description b/tests/test_project_fixtures/test_deleted_migration_project/git/description deleted file mode 100644 index 498b267..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/index b/tests/test_project_fixtures/test_deleted_migration_project/git/index deleted file mode 100644 index a41e52a..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/index and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/info/exclude b/tests/test_project_fixtures/test_deleted_migration_project/git/info/exclude deleted file mode 100644 index a5196d1..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/logs/HEAD b/tests/test_project_fixtures/test_deleted_migration_project/git/logs/HEAD deleted file mode 100644 index 5377828..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/logs/HEAD +++ /dev/null @@ -1,4 +0,0 @@ -0000000000000000000000000000000000000000 0395cbee60f2ea1b97f42ebdd43991c8f5d8d76e David-Wobrock 1516314144 +0100 commit (initial): Project init -0395cbee60f2ea1b97f42ebdd43991c8f5d8d76e 154ecf6119325cc3b1f3f5a4e709bfbd61a4a4ba David-Wobrock 1516314322 +0100 commit: Add backward incompatible migration -154ecf6119325cc3b1f3f5a4e709bfbd61a4a4ba be2fae887ee7ecd2d1e6371af1a865c17414bde9 David-Wobrock 1516314457 +0100 commit: Delete file and insert new -be2fae887ee7ecd2d1e6371af1a865c17414bde9 4bdc4ba9e7695893423be1b54f3101d6ccbd11c7 David-Wobrock 1516459290 +0100 commit (amend): Delete file and insert new diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/logs/refs/heads/master b/tests/test_project_fixtures/test_deleted_migration_project/git/logs/refs/heads/master deleted file mode 100644 index 5377828..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/logs/refs/heads/master +++ /dev/null @@ -1,4 +0,0 @@ -0000000000000000000000000000000000000000 0395cbee60f2ea1b97f42ebdd43991c8f5d8d76e David-Wobrock 1516314144 +0100 commit (initial): Project init -0395cbee60f2ea1b97f42ebdd43991c8f5d8d76e 154ecf6119325cc3b1f3f5a4e709bfbd61a4a4ba David-Wobrock 1516314322 +0100 commit: Add backward incompatible migration -154ecf6119325cc3b1f3f5a4e709bfbd61a4a4ba be2fae887ee7ecd2d1e6371af1a865c17414bde9 David-Wobrock 1516314457 +0100 commit: Delete file and insert new -be2fae887ee7ecd2d1e6371af1a865c17414bde9 4bdc4ba9e7695893423be1b54f3101d6ccbd11c7 David-Wobrock 1516459290 +0100 commit (amend): Delete file and insert new diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/03/95cbee60f2ea1b97f42ebdd43991c8f5d8d76e b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/03/95cbee60f2ea1b97f42ebdd43991c8f5d8d76e deleted file mode 100644 index 0054e0e..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/03/95cbee60f2ea1b97f42ebdd43991c8f5d8d76e +++ /dev/null @@ -1,2 +0,0 @@ -x¥�; -1@­sŠéÅ%gC"ÀÎ:ŸY�kQ¯ïŠG°|¯x/I­¥z\õÆ �s²dR´}ÐVóHqrÙzãÜ™ÉkRáÙ¯Òà^%oΛ¤vù‹Ãû‡‡K å>$©{Àí ‰`­QkµØeÜù�„:5¹qêP¥«J>ñ \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/09/d00ce23e0b42f2c18895ee5fa577f57f14b2ac b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/09/d00ce23e0b42f2c18895ee5fa577f57f14b2ac deleted file mode 100644 index 4d7d160..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/09/d00ce23e0b42f2c18895ee5fa577f57f14b2ac +++ /dev/null @@ -1,3 +0,0 @@ -x]PËjÃ0ìÙ_±�ƒ�;Ôm øRrÈ­·„m­�ZY2zÒ¯¯dåY„˜™�™UÃee™?Ì }L¡•”‰~Öté«G¢¼£@U¤ÐaóU‹^B‘Eö RÀ2/^Ò"O—%O«¼Œ:% ¤³Æ*$Ø0JeÀ -æÌ‘pfœ×QÒÉ/£ÍY7°Þ…1)ô7à•QËk­a¦’«(»€óU�;L0Ãj|(‹£8¢ (Z†ÚŸ“ð89úí|à…ñ67o -Ýú{_&™&=ï�¨¬âu¼¸C;†œê*„a¸“˜Ñø¼U¶¶Fn½4©Ý‹´S­|錊 µ:’o<ž�ÊmÅ~±Úºßs’T�ÔHB‰Ý&žÏï{øÐ$–s2UºFï„ÁUH÷‚)ãÿüájwr>Dqá£& \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/10/7654971c8d8cd4a209b0363d4604fc9ee7d494 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/10/7654971c8d8cd4a209b0363d4604fc9ee7d494 deleted file mode 100644 index 0d561f2..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/10/7654971c8d8cd4a209b0363d4604fc9ee7d494 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/15/4ecf6119325cc3b1f3f5a4e709bfbd61a4a4ba b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/15/4ecf6119325cc3b1f3f5a4e709bfbd61a4a4ba deleted file mode 100644 index 15253fb..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/15/4ecf6119325cc3b1f3f5a4e709bfbd61a4a4ba +++ /dev/null @@ -1 +0,0 @@ -x¥ŽKJD1Eg5›ü^> ¢àWª*mèÎK¢½}Ÿ¸g÷ÜÁáÐè½-°Á>¬)Õn”8PŽ"¹ZD'…LJ^2»èÅbv5IT7œ²/Ð.oTD‚®VД«·R˜½ËÙPª'ŽA~­Ï1á¿?}Œ2]à™ñtÿÃ×sÇv=Ñè/`6œñÎZxÔFku¼Gè’(Ô3¤Ë'CÛå W+W�ÞÎó˜cW?hþVd \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/20/6a76068032bb321ca63f561a230675d2645182 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/20/6a76068032bb321ca63f561a230675d2645182 deleted file mode 100644 index 40a0fd7..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/20/6a76068032bb321ca63f561a230675d2645182 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/2b/df33777b398bff4fca0e0aad47e9a7c57a2f96 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/2b/df33777b398bff4fca0e0aad47e9a7c57a2f96 deleted file mode 100644 index a150ce3..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/2b/df33777b398bff4fca0e0aad47e9a7c57a2f96 +++ /dev/null @@ -1,2 +0,0 @@ -x]OÁj„0ì9_ñ \QÙ‚,xXºlÙÃÞz+"Ѽ•´1‘D ö뛘ݵÛwafÞ̼F¨¶ÅËÓ3¼¡DMGdÐÌpø¤²S�'i’�’�§Y±I³MV@žïò-!­z`‹,a ð~Pz„žwÖƒ+ibèCa!­ ÆÀùF…«(¹ƒÑްÃ%9P»žÐc ” eËÑXâcVžSƒ+íùñªÑ^uveÂeÓñn$í± öAü€^8 -fJâ…þ ΂ÛUÉ~ÕÑICju»„°Ò•Žaм§z®¿p¾"µ½Šÿ`y¤ÂXÉ7êF¬}‰Ó!ˆ¢Ç.4 ä$D½TZ£OrĵOw‚%ãÿ~µÚ]�+ò ¢�m \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/39/0459eae1e9c3eecaac732d51867c8b8ed5102f b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/39/0459eae1e9c3eecaac732d51867c8b8ed5102f deleted file mode 100644 index 21bfffe..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/39/0459eae1e9c3eecaac732d51867c8b8ed5102f and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/3a/629de3fbf102d771b2a711bfe2f1ab3b830d14 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/3a/629de3fbf102d771b2a711bfe2f1ab3b830d14 deleted file mode 100644 index 6c07516..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/3a/629de3fbf102d771b2a711bfe2f1ab3b830d14 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/3c/dde4d6a3d85cb65c15446791e93c78ecac3ed5 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/3c/dde4d6a3d85cb65c15446791e93c78ecac3ed5 deleted file mode 100644 index eee3f45..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/3c/dde4d6a3d85cb65c15446791e93c78ecac3ed5 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/43/52f2dfe637a766c7fe558cc85b961860efd50c b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/43/52f2dfe637a766c7fe558cc85b961860efd50c deleted file mode 100644 index 6140b56..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/43/52f2dfe637a766c7fe558cc85b961860efd50c and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/45/3c549087e331a41ecbed2a81c9b8e92e8693e9 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/45/3c549087e331a41ecbed2a81c9b8e92e8693e9 deleted file mode 100644 index 23a50d1..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/45/3c549087e331a41ecbed2a81c9b8e92e8693e9 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/49/ca6418f20f7dac5f12b1c1d66e99844d44fd12 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/49/ca6418f20f7dac5f12b1c1d66e99844d44fd12 deleted file mode 100644 index a83c2f7..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/49/ca6418f20f7dac5f12b1c1d66e99844d44fd12 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4b/330bb1c7154afb23f170218d170dae079c437f b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4b/330bb1c7154afb23f170218d170dae079c437f deleted file mode 100644 index d261e11..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4b/330bb1c7154afb23f170218d170dae079c437f +++ /dev/null @@ -1,2 +0,0 @@ -x�ޱ -Â0E]íW¼± RAÈ …‚ƒ›{Hš×´ò’H’¢ŸocÄÉñ^Îá^E^A]ïW}ðôU:ã™V0Ú› ¬×H±(:’1±\2;çº:k7‰~DÒÀß0;¹„C›Û2ü&¬fïÂù$þ“ZIñcuƒ /M*B‘0¦ßÑf&–E+‚Й4ðÝv_ž<4Si \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 deleted file mode 100644 index adf6411..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4b/dc4ba9e7695893423be1b54f3101d6ccbd11c7 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4b/dc4ba9e7695893423be1b54f3101d6ccbd11c7 deleted file mode 100644 index 4b41432..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4b/dc4ba9e7695893423be1b54f3101d6ccbd11c7 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4c/e3b40413b7f8938d91828c437f33f66d57fcc9 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4c/e3b40413b7f8938d91828c437f33f66d57fcc9 deleted file mode 100644 index 24365e0..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/4c/e3b40413b7f8938d91828c437f33f66d57fcc9 +++ /dev/null @@ -1 +0,0 @@ -xU�Ak„0…{öW ìA·¨¨]l<JK½õVJˆf””8‘)ý÷Mâ®íæÞ¼yßK:¥;8ÕÅÍ²Û z-$� ¬vÈ¼à ·( û�§/N£†2/˼MPå}VYU»kswŠ£'`lXíj�1�Ó¬�…•¤ G¦¤uij‰6£y¹è.¾IŽ&5-)LnÁ;£^ñe�·Ë(ù3å»xl¢Ü8# ¤^â-|Ñ’ØâbŸç8…¸(ŠŠq!á7#m­J±A¢ñ1 KŸ[ žýó}£«¸…xö‹ÉÎò¼ÐžŸ°�y¼EzÝŸM h‡å�Â3úÚê´Û7ä¯dqD³‘|ÛöݬxîêC÷Ú¿ºÁ‹U \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/61/d7983b41623ed85d46c0212c66db9507948532 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/61/d7983b41623ed85d46c0212c66db9507948532 deleted file mode 100644 index 227f7f1..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/61/d7983b41623ed85d46c0212c66db9507948532 +++ /dev/null @@ -1,3 +0,0 @@ -x]�ÍjÃ0„{ÖS,ô !«LÀ‡BHé¡·ÞJ1R´1 -òÊX -¥oßHnÝŸ=ÎÎ~3k|0p×Ê›[xDÂY'´`>`Ö4PBŠ�’M»•ͶiA©�ºgì4‡l± kÀ�S˜Œn¸2\ XÃ,úÈ;z#<¯ª“XÅÍŽ1¸ŽÅ É"FèൈyQñ„1õzšx \JÙôŽ\rÚóM]\o !Lù�\áÏý¯Ðk½­Vx(u{Ò#v\ó™õ<‹JøÞÓÅ{m<ö§Løg+Z·ü-ž(á€ó’”Ϻ—ù‚_]3t­ý ¡¢o� \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/63/973d01988ba594743a8046c9c88c2aa527d307 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/63/973d01988ba594743a8046c9c88c2aa527d307 deleted file mode 100644 index 3f771d5..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/63/973d01988ba594743a8046c9c88c2aa527d307 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/73/47b0f2a9845fa268ad4a19967c706e5d7be38b b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/73/47b0f2a9845fa268ad4a19967c706e5d7be38b deleted file mode 100644 index 621f4fc..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/73/47b0f2a9845fa268ad4a19967c706e5d7be38b and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee deleted file mode 100644 index 66ccc09..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 deleted file mode 100644 index 250bef6..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/86/deb0cf782231006446fd6194592c2243e74ffe b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/86/deb0cf782231006446fd6194592c2243e74ffe deleted file mode 100644 index 635c9d7..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/86/deb0cf782231006446fd6194592c2243e74ffe +++ /dev/null @@ -1 +0,0 @@ -x+)JMU04±`040031Qˆ�ÏÌË,‰�×+¨dx6÷ÑìM¯9{wk®+�ºqèIOðD¨²âÔ’’̼ôb�²)ûw—Ê`Ö4PBŠ�’M»•ͶiA©�ºgì4‡l± kÀ�S˜Œn¸2\ XÃ,úÈ;z#<¯ª“XÅÍŽ1¸ŽÅ É"FèൈyQñ„1õzšx \JÙôŽ\rÚóM]\o !Lù�\áÏý¯Ðk½­Vx(u{Ò#v\ó™õ<‹JøÞÓÅ{m<ö§Løg+Z·ü-ž(á€ó’”Ϻ—ù‚_]3t­ý ¢ðo‚ \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/be/2fae887ee7ecd2d1e6371af1a865c17414bde9 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/be/2fae887ee7ecd2d1e6371af1a865c17414bde9 deleted file mode 100644 index 5985521..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/be/2fae887ee7ecd2d1e6371af1a865c17414bde9 +++ /dev/null @@ -1 +0,0 @@ -x¥ŽAn1 EYçÞ£¢1N2Œ„*Ü¡kÇvÚˆ™ JÓrýâ]¾÷¥§/uYJ‡c ]of@¢j^#“ž‚¤ƒ÷qœÐ&’ñdÂB¦ÁݹÙÚa[MrDœèD(a¦ØÛ8L)'�Èž}bÇ?ý«6¸òoÑ·�šZ•œõ‰‡Ç /Ÿ —ù uyߺ ½#ì·Ùíh·$ÜÕfë¹Ì¼*”õÛZ‡Õî7zRY \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/e0/00041da0b7dc84cb17be523882c118641b72b5 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/e0/00041da0b7dc84cb17be523882c118641b72b5 deleted file mode 100644 index 0363066..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/e0/00041da0b7dc84cb17be523882c118641b72b5 +++ /dev/null @@ -1,2 +0,0 @@ -xm�AkÃ0 …wö¯>µÐÅt ƒíJÇÖÚ±câÄJêb[ÁVÛíß/I[èa'!žô¾'•ŽJx|xº“RŠïÍb …Ú6PSgcÌçm¤=V —š ±dÀŸ–&àÂyY;§K‡ hðdïÑÁQG;HA{4Pºm�­4[ -EÑù½uDOÁ†î(tæ6AmN !Šs›ž•2T¥Ììuhèš©"¯0¨i6�ª�˜”ÁÖѯÇÀꔫD¦°¾¥È@Iˆ:’‡³KVuð¬ƒË@ƒœ÷}~UJ†£�²„l°ÖÇ#9{]-Öùf¾Ý.W‹Mþ¹ž}}Ìåäð?ƒMîm‡Ó®íM؆&ɱ7 x�ÿø£±ø°è™ž \ No newline at end of file diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/e4/9014e99d282c96e97490f64f13dba56637acc3 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/e4/9014e99d282c96e97490f64f13dba56637acc3 deleted file mode 100644 index 2b34cf3..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/e4/9014e99d282c96e97490f64f13dba56637acc3 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 deleted file mode 100644 index 7112238..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/f2/5c8d6c97ee9f2aa3ebc1884e9d374e2a93f8e7 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/f2/5c8d6c97ee9f2aa3ebc1884e9d374e2a93f8e7 deleted file mode 100644 index f7e0d74..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/f2/5c8d6c97ee9f2aa3ebc1884e9d374e2a93f8e7 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/f7/9f238852ec7cd7b9a3cc7f6b9b5324d380ae8b b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/f7/9f238852ec7cd7b9a3cc7f6b9b5324d380ae8b deleted file mode 100644 index 2b45f0b..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/f7/9f238852ec7cd7b9a3cc7f6b9b5324d380ae8b and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/fb/cc4dab70fb36389f806bb72fd5056f5034f572 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/fb/cc4dab70fb36389f806bb72fd5056f5034f572 deleted file mode 100644 index 5807b0b..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/fb/cc4dab70fb36389f806bb72fd5056f5034f572 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/fc/04070e8336f17e3b2402586653623e6bb51f67 b/tests/test_project_fixtures/test_deleted_migration_project/git/objects/fc/04070e8336f17e3b2402586653623e6bb51f67 deleted file mode 100644 index a0339be..0000000 Binary files a/tests/test_project_fixtures/test_deleted_migration_project/git/objects/fc/04070e8336f17e3b2402586653623e6bb51f67 and /dev/null differ diff --git a/tests/test_project_fixtures/test_deleted_migration_project/git/refs/heads/master b/tests/test_project_fixtures/test_deleted_migration_project/git/refs/heads/master deleted file mode 100644 index c422dbc..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/git/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -4bdc4ba9e7695893423be1b54f3101d6ccbd11c7 diff --git a/tests/test_project_fixtures/test_deleted_migration_project/manage.py b/tests/test_project_fixtures/test_deleted_migration_project/manage.py deleted file mode 100644 index 3a629de..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_deleted_migration_project.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_app/__init__.py b/tests/test_project_fixtures/test_deleted_migration_project/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_app/admin.py b/tests/test_project_fixtures/test_deleted_migration_project/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_app/apps.py b/tests/test_project_fixtures/test_deleted_migration_project/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_app/migrations/0001_initial.py b/tests/test_project_fixtures/test_deleted_migration_project/test_app/migrations/0001_initial.py deleted file mode 100644 index 2bdf337..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_app/migrations/0001_initial.py +++ /dev/null @@ -1,21 +0,0 @@ -# Generated by Django 2.0.1 on 2018-01-18 22:24 - -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)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_app/migrations/0003_new_nullable_field.py b/tests/test_project_fixtures/test_deleted_migration_project/test_app/migrations/0003_new_nullable_field.py deleted file mode 100644 index fbcc4da..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_app/migrations/0003_new_nullable_field.py +++ /dev/null @@ -1,15 +0,0 @@ -from django.db import migrations -from django.db import models - - -class Migration(migrations.Migration): - - dependencies = [('test_app', '0001_initial'),] - - operations = [ - migrations.AddField( - model_name='a', - name='new_char_nullable_test_field', - field=models.CharField(max_length=30, null=True), - ), - ] diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_deleted_migration_project/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_app/models.py b/tests/test_project_fixtures/test_deleted_migration_project/test_app/models.py deleted file mode 100644 index 4b330bb..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_app/models.py +++ /dev/null @@ -1,6 +0,0 @@ -from django.db import models - -class A(models.Model): - null_field = models.IntegerField(null=True) - new_not_null_field = models.IntegerField(null=False) - new_char_nullable_test_field = models.CharField(max_length=30, null=True) diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_app/tests.py b/tests/test_project_fixtures/test_deleted_migration_project/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_app/views.py b/tests/test_project_fixtures/test_deleted_migration_project/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/__init__.py b/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/settings.py b/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/settings.py deleted file mode 100644 index 449a75d..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/settings.py +++ /dev/null @@ -1,129 +0,0 @@ -""" -Django settings for test_deleted_migration_project project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_deleted_migration_project.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_deleted_migration_project.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/urls.py b/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/wsgi.py b/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/wsgi.py deleted file mode 100644 index e000041..0000000 --- a/tests/test_project_fixtures/test_deleted_migration_project/test_deleted_migration_project/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_deleted_migration_project.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_django_without_git_project/manage.py b/tests/test_project_fixtures/test_django_without_git_project/manage.py deleted file mode 100644 index 1462610..0000000 --- a/tests/test_project_fixtures/test_django_without_git_project/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_django_without_git_project.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_app/__init__.py b/tests/test_project_fixtures/test_django_without_git_project/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_app/admin.py b/tests/test_project_fixtures/test_django_without_git_project/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_django_without_git_project/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_app/apps.py b/tests/test_project_fixtures/test_django_without_git_project/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_django_without_git_project/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_django_without_git_project/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_app/models.py b/tests/test_project_fixtures/test_django_without_git_project/test_app/models.py deleted file mode 100644 index 137941f..0000000 --- a/tests/test_project_fixtures/test_django_without_git_project/test_app/models.py +++ /dev/null @@ -1 +0,0 @@ -from django.db import models diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_app/tests.py b/tests/test_project_fixtures/test_django_without_git_project/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_django_without_git_project/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_app/views.py b/tests/test_project_fixtures/test_django_without_git_project/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_django_without_git_project/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/__init__.py b/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/settings.py b/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/settings.py deleted file mode 100644 index 652ca27..0000000 --- a/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/settings.py +++ /dev/null @@ -1,130 +0,0 @@ -""" -Django settings for test_django_without_git_project project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_django_without_git_project.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_django_without_git_project.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/urls.py b/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/wsgi.py b/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/wsgi.py deleted file mode 100644 index 6741b31..0000000 --- a/tests/test_project_fixtures/test_django_without_git_project/test_django_without_git_project/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_add_not_null_column.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_git_project/git/COMMIT_EDITMSG b/tests/test_project_fixtures/test_git_project/git/COMMIT_EDITMSG deleted file mode 100644 index 972ea8f..0000000 --- a/tests/test_project_fixtures/test_git_project/git/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -Init diff --git a/tests/test_project_fixtures/test_git_project/git/HEAD b/tests/test_project_fixtures/test_git_project/git/HEAD deleted file mode 100644 index cb089cd..0000000 --- a/tests/test_project_fixtures/test_git_project/git/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/test_project_fixtures/test_git_project/git/config b/tests/test_project_fixtures/test_git_project/git/config deleted file mode 100644 index eeb8dd7..0000000 --- a/tests/test_project_fixtures/test_git_project/git/config +++ /dev/null @@ -1,5 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = false - bare = false - logallrefupdates = true diff --git a/tests/test_project_fixtures/test_git_project/git/description b/tests/test_project_fixtures/test_git_project/git/description deleted file mode 100644 index 498b267..0000000 --- a/tests/test_project_fixtures/test_git_project/git/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/test_project_fixtures/test_git_project/git/info/exclude b/tests/test_project_fixtures/test_git_project/git/info/exclude deleted file mode 100644 index a5196d1..0000000 --- a/tests/test_project_fixtures/test_git_project/git/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/tests/test_project_fixtures/test_git_project/git/logs/HEAD b/tests/test_project_fixtures/test_git_project/git/logs/HEAD deleted file mode 100644 index 86bb128..0000000 --- a/tests/test_project_fixtures/test_git_project/git/logs/HEAD +++ /dev/null @@ -1 +0,0 @@ -0000000000000000000000000000000000000000 7be2007c11ae031c7749e1fb1be9e41a8bfc1bdd David-Wobrock 1509048040 +0200 commit (initial): Init diff --git a/tests/test_project_fixtures/test_git_project/git/logs/refs/heads/master b/tests/test_project_fixtures/test_git_project/git/logs/refs/heads/master deleted file mode 100644 index 86bb128..0000000 --- a/tests/test_project_fixtures/test_git_project/git/logs/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -0000000000000000000000000000000000000000 7be2007c11ae031c7749e1fb1be9e41a8bfc1bdd David-Wobrock 1509048040 +0200 commit (initial): Init diff --git a/tests/test_project_fixtures/test_git_project/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 b/tests/test_project_fixtures/test_git_project/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 deleted file mode 100644 index adf6411..0000000 Binary files a/tests/test_project_fixtures/test_git_project/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 and /dev/null differ diff --git a/tests/test_project_fixtures/test_git_project/git/objects/7b/e2007c11ae031c7749e1fb1be9e41a8bfc1bdd b/tests/test_project_fixtures/test_git_project/git/objects/7b/e2007c11ae031c7749e1fb1be9e41a8bfc1bdd deleted file mode 100644 index 29cba1d..0000000 Binary files a/tests/test_project_fixtures/test_git_project/git/objects/7b/e2007c11ae031c7749e1fb1be9e41a8bfc1bdd and /dev/null differ diff --git a/tests/test_project_fixtures/test_git_project/git/refs/heads/master b/tests/test_project_fixtures/test_git_project/git/refs/heads/master deleted file mode 100644 index 0de34be..0000000 --- a/tests/test_project_fixtures/test_git_project/git/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -7be2007c11ae031c7749e1fb1be9e41a8bfc1bdd diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/manage.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/manage.py deleted file mode 100644 index 3390cc6..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/__init__.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/admin.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/apps.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/apps.py deleted file mode 100644 index 1dc36fd..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestApp1Config(AppConfig): - name = 'test_app1' diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0001_initial.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0001_initial.py deleted file mode 100644 index 9bb5157..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0001_initial.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.18 on 2019-01-20 10:31 -from __future__ import unicode_literals - -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()), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0002_a_null_field_2.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0002_a_null_field_2.py deleted file mode 100644 index 15d47f2..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0002_a_null_field_2.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.18 on 2019-01-20 10:32 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app1', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='a', - name='null_field_2', - field=models.IntegerField(default=1), - ), - ] diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0003_a_non_null_field.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0003_a_non_null_field.py deleted file mode 100644 index 8fbe1b0..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/0003_a_non_null_field.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.18 on 2019-01-20 10:33 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app1', '0002_a_null_field_2'), - ] - - operations = [ - migrations.AddField( - model_name='a', - name='non_null_field', - field=models.IntegerField(null=True), - ), - ] diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/__init__.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/models.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/models.py deleted file mode 100644 index 1cdc834..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/models.py +++ /dev/null @@ -1,6 +0,0 @@ -from django.db import models - -class A(models.Model): - null_field = models.IntegerField() - null_field_2 = models.IntegerField(default=1) - non_null_field = models.IntegerField(null=True) diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/tests.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/views.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_app1/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/__init__.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/settings.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/settings.py deleted file mode 100644 index e45afff..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/settings.py +++ /dev/null @@ -1,131 +0,0 @@ -""" -Django settings for test_project project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os -import sys - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - -sys.path.insert(0, os.path.join(BASE_DIR, 'apps')) - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app1', -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django_fake_database_backends.backends.mysql' - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/urls.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/wsgi.py b/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/wsgi.py deleted file mode 100644 index aa66ac1..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/django_project/test_project/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/COMMIT_EDITMSG b/tests/test_project_fixtures/test_non_root_git_project/git/COMMIT_EDITMSG deleted file mode 100644 index 46d3912..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -Add ok migration diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/HEAD b/tests/test_project_fixtures/test_non_root_git_project/git/HEAD deleted file mode 100644 index cb089cd..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/config b/tests/test_project_fixtures/test_non_root_git_project/git/config deleted file mode 100644 index 515f483..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/config +++ /dev/null @@ -1,5 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/description b/tests/test_project_fixtures/test_non_root_git_project/git/description deleted file mode 100644 index 498b267..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/applypatch-msg.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/applypatch-msg.sample deleted file mode 100755 index a5d7b84..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/applypatch-msg.sample +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -# -# An example hook script to check the commit log message taken by -# applypatch from an e-mail message. -# -# The hook should exit with non-zero status after issuing an -# appropriate message if it wants to stop the commit. The hook is -# allowed to edit the commit message file. -# -# To enable this hook, rename this file to "applypatch-msg". - -. git-sh-setup -commitmsg="$(git rev-parse --git-path hooks/commit-msg)" -test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} -: diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/commit-msg.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/commit-msg.sample deleted file mode 100755 index b58d118..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/commit-msg.sample +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# -# An example hook script to check the commit log message. -# Called by "git commit" with one argument, the name of the file -# that has the commit message. The hook should exit with non-zero -# status after issuing an appropriate message if it wants to stop the -# commit. The hook is allowed to edit the commit message file. -# -# To enable this hook, rename this file to "commit-msg". - -# Uncomment the below to add a Signed-off-by line to the message. -# Doing this in a hook is a bad idea in general, but the prepare-commit-msg -# hook is more suited to it. -# -# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') -# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" - -# This example catches duplicate Signed-off-by lines. - -test "" = "$(grep '^Signed-off-by: ' "$1" | - sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { - echo >&2 Duplicate Signed-off-by lines. - exit 1 -} diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/fsmonitor-watchman.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/fsmonitor-watchman.sample deleted file mode 100755 index e673bb3..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/fsmonitor-watchman.sample +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; -use IPC::Open2; - -# An example hook script to integrate Watchman -# (https://facebook.github.io/watchman/) with git to speed up detecting -# new and modified files. -# -# The hook is passed a version (currently 1) and a time in nanoseconds -# formatted as a string and outputs to stdout all files that have been -# modified since the given time. Paths must be relative to the root of -# the working tree and separated by a single NUL. -# -# To enable this hook, rename this file to "query-watchman" and set -# 'git config core.fsmonitor .git/hooks/query-watchman' -# -my ($version, $time) = @ARGV; - -# Check the hook interface version - -if ($version == 1) { - # convert nanoseconds to seconds - $time = int $time / 1000000000; -} else { - die "Unsupported query-fsmonitor hook version '$version'.\n" . - "Falling back to scanning...\n"; -} - -my $git_work_tree; -if ($^O =~ 'msys' || $^O =~ 'cygwin') { - $git_work_tree = Win32::GetCwd(); - $git_work_tree =~ tr/\\/\//; -} else { - require Cwd; - $git_work_tree = Cwd::cwd(); -} - -my $retry = 1; - -launch_watchman(); - -sub launch_watchman { - - my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') - or die "open2() failed: $!\n" . - "Falling back to scanning...\n"; - - # In the query expression below we're asking for names of files that - # changed since $time but were not transient (ie created after - # $time but no longer exist). - # - # To accomplish this, we're using the "since" generator to use the - # recency index to select candidate nodes and "fields" to limit the - # output to file names only. Then we're using the "expression" term to - # further constrain the results. - # - # The category of transient files that we want to ignore will have a - # creation clock (cclock) newer than $time_t value and will also not - # currently exist. - - my $query = <<" END"; - ["query", "$git_work_tree", { - "since": $time, - "fields": ["name"], - "expression": ["not", ["allof", ["since", $time, "cclock"], ["not", "exists"]]] - }] - END - - print CHLD_IN $query; - close CHLD_IN; - my $response = do {local $/; }; - - die "Watchman: command returned no output.\n" . - "Falling back to scanning...\n" if $response eq ""; - die "Watchman: command returned invalid output: $response\n" . - "Falling back to scanning...\n" unless $response =~ /^\{/; - - my $json_pkg; - eval { - require JSON::XS; - $json_pkg = "JSON::XS"; - 1; - } or do { - require JSON::PP; - $json_pkg = "JSON::PP"; - }; - - my $o = $json_pkg->new->utf8->decode($response); - - if ($retry > 0 and $o->{error} and $o->{error} =~ m/unable to resolve root .* directory (.*) is not watched/) { - print STDERR "Adding '$git_work_tree' to watchman's watch list.\n"; - $retry--; - qx/watchman watch "$git_work_tree"/; - die "Failed to make watchman watch '$git_work_tree'.\n" . - "Falling back to scanning...\n" if $? != 0; - - # Watchman will always return all files on the first query so - # return the fast "everything is dirty" flag to git and do the - # Watchman query just to get it over with now so we won't pay - # the cost in git to look up each individual file. - print "/\0"; - eval { launch_watchman() }; - exit 0; - } - - die "Watchman: $o->{error}.\n" . - "Falling back to scanning...\n" if $o->{error}; - - binmode STDOUT, ":utf8"; - local $, = "\0"; - print @{$o->{files}}; -} diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/post-update.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/post-update.sample deleted file mode 100755 index ec17ec1..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/post-update.sample +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# -# An example hook script to prepare a packed repository for use over -# dumb transports. -# -# To enable this hook, rename this file to "post-update". - -exec git update-server-info diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-applypatch.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-applypatch.sample deleted file mode 100755 index 4142082..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-applypatch.sample +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# -# An example hook script to verify what is about to be committed -# by applypatch from an e-mail message. -# -# The hook should exit with non-zero status after issuing an -# appropriate message if it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-applypatch". - -. git-sh-setup -precommit="$(git rev-parse --git-path hooks/pre-commit)" -test -x "$precommit" && exec "$precommit" ${1+"$@"} -: diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-commit.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-commit.sample deleted file mode 100755 index 68d62d5..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-commit.sample +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# -# An example hook script to verify what is about to be committed. -# Called by "git commit" with no arguments. The hook should -# exit with non-zero status after issuing an appropriate message if -# it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-commit". - -if git rev-parse --verify HEAD >/dev/null 2>&1 -then - against=HEAD -else - # Initial commit: diff against an empty tree object - against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 -fi - -# If you want to allow non-ASCII filenames set this variable to true. -allownonascii=$(git config --bool hooks.allownonascii) - -# Redirect output to stderr. -exec 1>&2 - -# Cross platform projects tend to avoid non-ASCII filenames; prevent -# them from being added to the repository. We exploit the fact that the -# printable range starts at the space character and ends with tilde. -if [ "$allownonascii" != "true" ] && - # Note that the use of brackets around a tr range is ok here, (it's - # even required, for portability to Solaris 10's /usr/bin/tr), since - # the square bracket bytes happen to fall in the designated range. - test $(git diff --cached --name-only --diff-filter=A -z $against | - LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 -then - cat <<\EOF -Error: Attempt to add a non-ASCII file name. - -This can cause problems if you want to work with people on other platforms. - -To be portable it is advisable to rename the file. - -If you know what you are doing you can disable this check using: - - git config hooks.allownonascii true -EOF - exit 1 -fi - -# If there are whitespace errors, print the offending file names and fail. -exec git diff-index --check --cached $against -- diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-push.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-push.sample deleted file mode 100755 index 6187dbf..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-push.sample +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -# An example hook script to verify what is about to be pushed. Called by "git -# push" after it has checked the remote status, but before anything has been -# pushed. If this script exits with a non-zero status nothing will be pushed. -# -# This hook is called with the following parameters: -# -# $1 -- Name of the remote to which the push is being done -# $2 -- URL to which the push is being done -# -# If pushing without using a named remote those arguments will be equal. -# -# Information about the commits which are being pushed is supplied as lines to -# the standard input in the form: -# -# -# -# This sample shows how to prevent push of commits where the log message starts -# with "WIP" (work in progress). - -remote="$1" -url="$2" - -z40=0000000000000000000000000000000000000000 - -while read local_ref local_sha remote_ref remote_sha -do - if [ "$local_sha" = $z40 ] - then - # Handle delete - : - else - if [ "$remote_sha" = $z40 ] - then - # New branch, examine all commits - range="$local_sha" - else - # Update to existing branch, examine new commits - range="$remote_sha..$local_sha" - fi - - # Check for WIP commit - commit=`git rev-list -n 1 --grep '^WIP' "$range"` - if [ -n "$commit" ] - then - echo >&2 "Found WIP commit in $local_ref, not pushing" - exit 1 - fi - fi -done - -exit 0 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-rebase.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-rebase.sample deleted file mode 100755 index 6cbef5c..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-rebase.sample +++ /dev/null @@ -1,169 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2006, 2008 Junio C Hamano -# -# The "pre-rebase" hook is run just before "git rebase" starts doing -# its job, and can prevent the command from running by exiting with -# non-zero status. -# -# The hook is called with the following parameters: -# -# $1 -- the upstream the series was forked from. -# $2 -- the branch being rebased (or empty when rebasing the current branch). -# -# This sample shows how to prevent topic branches that are already -# merged to 'next' branch from getting rebased, because allowing it -# would result in rebasing already published history. - -publish=next -basebranch="$1" -if test "$#" = 2 -then - topic="refs/heads/$2" -else - topic=`git symbolic-ref HEAD` || - exit 0 ;# we do not interrupt rebasing detached HEAD -fi - -case "$topic" in -refs/heads/??/*) - ;; -*) - exit 0 ;# we do not interrupt others. - ;; -esac - -# Now we are dealing with a topic branch being rebased -# on top of master. Is it OK to rebase it? - -# Does the topic really exist? -git show-ref -q "$topic" || { - echo >&2 "No such branch $topic" - exit 1 -} - -# Is topic fully merged to master? -not_in_master=`git rev-list --pretty=oneline ^master "$topic"` -if test -z "$not_in_master" -then - echo >&2 "$topic is fully merged to master; better remove it." - exit 1 ;# we could allow it, but there is no point. -fi - -# Is topic ever merged to next? If so you should not be rebasing it. -only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` -only_next_2=`git rev-list ^master ${publish} | sort` -if test "$only_next_1" = "$only_next_2" -then - not_in_topic=`git rev-list "^$topic" master` - if test -z "$not_in_topic" - then - echo >&2 "$topic is already up to date with master" - exit 1 ;# we could allow it, but there is no point. - else - exit 0 - fi -else - not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` - /usr/bin/perl -e ' - my $topic = $ARGV[0]; - my $msg = "* $topic has commits already merged to public branch:\n"; - my (%not_in_next) = map { - /^([0-9a-f]+) /; - ($1 => 1); - } split(/\n/, $ARGV[1]); - for my $elem (map { - /^([0-9a-f]+) (.*)$/; - [$1 => $2]; - } split(/\n/, $ARGV[2])) { - if (!exists $not_in_next{$elem->[0]}) { - if ($msg) { - print STDERR $msg; - undef $msg; - } - print STDERR " $elem->[1]\n"; - } - } - ' "$topic" "$not_in_next" "$not_in_master" - exit 1 -fi - -<<\DOC_END - -This sample hook safeguards topic branches that have been -published from being rewound. - -The workflow assumed here is: - - * Once a topic branch forks from "master", "master" is never - merged into it again (either directly or indirectly). - - * Once a topic branch is fully cooked and merged into "master", - it is deleted. If you need to build on top of it to correct - earlier mistakes, a new topic branch is created by forking at - the tip of the "master". This is not strictly necessary, but - it makes it easier to keep your history simple. - - * Whenever you need to test or publish your changes to topic - branches, merge them into "next" branch. - -The script, being an example, hardcodes the publish branch name -to be "next", but it is trivial to make it configurable via -$GIT_DIR/config mechanism. - -With this workflow, you would want to know: - -(1) ... if a topic branch has ever been merged to "next". Young - topic branches can have stupid mistakes you would rather - clean up before publishing, and things that have not been - merged into other branches can be easily rebased without - affecting other people. But once it is published, you would - not want to rewind it. - -(2) ... if a topic branch has been fully merged to "master". - Then you can delete it. More importantly, you should not - build on top of it -- other people may already want to - change things related to the topic as patches against your - "master", so if you need further changes, it is better to - fork the topic (perhaps with the same name) afresh from the - tip of "master". - -Let's look at this example: - - o---o---o---o---o---o---o---o---o---o "next" - / / / / - / a---a---b A / / - / / / / - / / c---c---c---c B / - / / / \ / - / / / b---b C \ / - / / / / \ / - ---o---o---o---o---o---o---o---o---o---o---o "master" - - -A, B and C are topic branches. - - * A has one fix since it was merged up to "next". - - * B has finished. It has been fully merged up to "master" and "next", - and is ready to be deleted. - - * C has not merged to "next" at all. - -We would want to allow C to be rebased, refuse A, and encourage -B to be deleted. - -To compute (1): - - git rev-list ^master ^topic next - git rev-list ^master next - - if these match, topic has not merged in next at all. - -To compute (2): - - git rev-list master..topic - - if this is empty, it is fully merged to "master". - -DOC_END diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-receive.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-receive.sample deleted file mode 100755 index a1fd29e..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/pre-receive.sample +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# -# An example hook script to make use of push options. -# The example simply echoes all push options that start with 'echoback=' -# and rejects all pushes when the "reject" push option is used. -# -# To enable this hook, rename this file to "pre-receive". - -if test -n "$GIT_PUSH_OPTION_COUNT" -then - i=0 - while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" - do - eval "value=\$GIT_PUSH_OPTION_$i" - case "$value" in - echoback=*) - echo "echo from the pre-receive-hook: ${value#*=}" >&2 - ;; - reject) - exit 1 - esac - i=$((i + 1)) - done -fi diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/prepare-commit-msg.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/prepare-commit-msg.sample deleted file mode 100755 index 10fa14c..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/prepare-commit-msg.sample +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# -# An example hook script to prepare the commit log message. -# Called by "git commit" with the name of the file that has the -# commit message, followed by the description of the commit -# message's source. The hook's purpose is to edit the commit -# message file. If the hook fails with a non-zero status, -# the commit is aborted. -# -# To enable this hook, rename this file to "prepare-commit-msg". - -# This hook includes three examples. The first one removes the -# "# Please enter the commit message..." help message. -# -# The second includes the output of "git diff --name-status -r" -# into the message, just before the "git status" output. It is -# commented because it doesn't cope with --amend or with squashed -# commits. -# -# The third example adds a Signed-off-by line to the message, that can -# still be edited. This is rarely a good idea. - -COMMIT_MSG_FILE=$1 -COMMIT_SOURCE=$2 -SHA1=$3 - -/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" - -# case "$COMMIT_SOURCE,$SHA1" in -# ,|template,) -# /usr/bin/perl -i.bak -pe ' -# print "\n" . `git diff --cached --name-status -r` -# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; -# *) ;; -# esac - -# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') -# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" -# if test -z "$COMMIT_SOURCE" -# then -# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" -# fi diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/update.sample b/tests/test_project_fixtures/test_non_root_git_project/git/hooks/update.sample deleted file mode 100755 index 80ba941..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/hooks/update.sample +++ /dev/null @@ -1,128 +0,0 @@ -#!/bin/sh -# -# An example hook script to block unannotated tags from entering. -# Called by "git receive-pack" with arguments: refname sha1-old sha1-new -# -# To enable this hook, rename this file to "update". -# -# Config -# ------ -# hooks.allowunannotated -# This boolean sets whether unannotated tags will be allowed into the -# repository. By default they won't be. -# hooks.allowdeletetag -# This boolean sets whether deleting tags will be allowed in the -# repository. By default they won't be. -# hooks.allowmodifytag -# This boolean sets whether a tag may be modified after creation. By default -# it won't be. -# hooks.allowdeletebranch -# This boolean sets whether deleting branches will be allowed in the -# repository. By default they won't be. -# hooks.denycreatebranch -# This boolean sets whether remotely creating branches will be denied -# in the repository. By default this is allowed. -# - -# --- Command line -refname="$1" -oldrev="$2" -newrev="$3" - -# --- Safety check -if [ -z "$GIT_DIR" ]; then - echo "Don't run this script from the command line." >&2 - echo " (if you want, you could supply GIT_DIR then run" >&2 - echo " $0 )" >&2 - exit 1 -fi - -if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then - echo "usage: $0 " >&2 - exit 1 -fi - -# --- Config -allowunannotated=$(git config --bool hooks.allowunannotated) -allowdeletebranch=$(git config --bool hooks.allowdeletebranch) -denycreatebranch=$(git config --bool hooks.denycreatebranch) -allowdeletetag=$(git config --bool hooks.allowdeletetag) -allowmodifytag=$(git config --bool hooks.allowmodifytag) - -# check for no description -projectdesc=$(sed -e '1q' "$GIT_DIR/description") -case "$projectdesc" in -"Unnamed repository"* | "") - echo "*** Project description file hasn't been set" >&2 - exit 1 - ;; -esac - -# --- Check types -# if $newrev is 0000...0000, it's a commit to delete a ref. -zero="0000000000000000000000000000000000000000" -if [ "$newrev" = "$zero" ]; then - newrev_type=delete -else - newrev_type=$(git cat-file -t $newrev) -fi - -case "$refname","$newrev_type" in - refs/tags/*,commit) - # un-annotated tag - short_refname=${refname##refs/tags/} - if [ "$allowunannotated" != "true" ]; then - echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 - echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 - exit 1 - fi - ;; - refs/tags/*,delete) - # delete tag - if [ "$allowdeletetag" != "true" ]; then - echo "*** Deleting a tag is not allowed in this repository" >&2 - exit 1 - fi - ;; - refs/tags/*,tag) - # annotated tag - if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 - then - echo "*** Tag '$refname' already exists." >&2 - echo "*** Modifying a tag is not allowed in this repository." >&2 - exit 1 - fi - ;; - refs/heads/*,commit) - # branch - if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then - echo "*** Creating a branch is not allowed in this repository" >&2 - exit 1 - fi - ;; - refs/heads/*,delete) - # delete branch - if [ "$allowdeletebranch" != "true" ]; then - echo "*** Deleting a branch is not allowed in this repository" >&2 - exit 1 - fi - ;; - refs/remotes/*,commit) - # tracking branch - ;; - refs/remotes/*,delete) - # delete tracking branch - if [ "$allowdeletebranch" != "true" ]; then - echo "*** Deleting a tracking branch is not allowed in this repository" >&2 - exit 1 - fi - ;; - *) - # Anything else (is there anything else?) - echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 - exit 1 - ;; -esac - -# --- Finished -exit 0 diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/index b/tests/test_project_fixtures/test_non_root_git_project/git/index deleted file mode 100644 index dbd8c5d..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/index and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/info/exclude b/tests/test_project_fixtures/test_non_root_git_project/git/info/exclude deleted file mode 100644 index a5196d1..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/logs/HEAD b/tests/test_project_fixtures/test_non_root_git_project/git/logs/HEAD deleted file mode 100644 index e3682ee..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/logs/HEAD +++ /dev/null @@ -1,6 +0,0 @@ -0000000000000000000000000000000000000000 30b505e031fc496c88d36be5ed7892337c640223 David Wobrock 1547980206 +0100 commit (initial): init -30b505e031fc496c88d36be5ed7892337c640223 a3f20003e5407a44000854c41ba29c06a3bbba82 David Wobrock 1547980230 +0100 commit (amend): init -a3f20003e5407a44000854c41ba29c06a3bbba82 0e52dc2380789e401cf385d3376af39f4bb6598f David Wobrock 1547980287 +0100 commit (amend): init -0e52dc2380789e401cf385d3376af39f4bb6598f 0140e142724fc58944797f9ddc2ebf964146339a David Wobrock 1547980306 +0100 commit: init migration -0140e142724fc58944797f9ddc2ebf964146339a 2c46f438a89972f9ce2d5151a825a5bfb7f7db4b David Wobrock 1547980356 +0100 commit: add ko migration -2c46f438a89972f9ce2d5151a825a5bfb7f7db4b f122245e6a3ce63b99e0beeb8403031edd08ed50 David Wobrock 1547980398 +0100 commit: Add ok migration diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/logs/refs/heads/master b/tests/test_project_fixtures/test_non_root_git_project/git/logs/refs/heads/master deleted file mode 100644 index e3682ee..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/logs/refs/heads/master +++ /dev/null @@ -1,6 +0,0 @@ -0000000000000000000000000000000000000000 30b505e031fc496c88d36be5ed7892337c640223 David Wobrock 1547980206 +0100 commit (initial): init -30b505e031fc496c88d36be5ed7892337c640223 a3f20003e5407a44000854c41ba29c06a3bbba82 David Wobrock 1547980230 +0100 commit (amend): init -a3f20003e5407a44000854c41ba29c06a3bbba82 0e52dc2380789e401cf385d3376af39f4bb6598f David Wobrock 1547980287 +0100 commit (amend): init -0e52dc2380789e401cf385d3376af39f4bb6598f 0140e142724fc58944797f9ddc2ebf964146339a David Wobrock 1547980306 +0100 commit: init migration -0140e142724fc58944797f9ddc2ebf964146339a 2c46f438a89972f9ce2d5151a825a5bfb7f7db4b David Wobrock 1547980356 +0100 commit: add ko migration -2c46f438a89972f9ce2d5151a825a5bfb7f7db4b f122245e6a3ce63b99e0beeb8403031edd08ed50 David Wobrock 1547980398 +0100 commit: Add ok migration diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/01/40e142724fc58944797f9ddc2ebf964146339a b/tests/test_project_fixtures/test_non_root_git_project/git/objects/01/40e142724fc58944797f9ddc2ebf964146339a deleted file mode 100644 index 3b6c8db..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/objects/01/40e142724fc58944797f9ddc2ebf964146339a +++ /dev/null @@ -1,2 +0,0 @@ -x¥�Á -!E[ûîƒáéÓ…ˆýCk}ê$åbõû}BËsáî¥ZJî\*±ë-FnÒL„h¼I6H��¤Á*oÑ&OJR¤ØÃµ¸uQË@ ,ÆF‚—Ù¥QPÞÏÚšÄܳ_kãg÷Ê�_ªo•nü¾8½xZ‹Ë÷‰j9r¡Õb Ì|€�t íñËÛ¸ZòÚ\Ïuc�¿M1 \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/0e/52dc2380789e401cf385d3376af39f4bb6598f b/tests/test_project_fixtures/test_non_root_git_project/git/objects/0e/52dc2380789e401cf385d3376af39f4bb6598f deleted file mode 100644 index e6f6376..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/0e/52dc2380789e401cf385d3376af39f4bb6598f and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/15/d47f23b30965a0ef668af1e639a23634e4532a b/tests/test_project_fixtures/test_non_root_git_project/git/objects/15/d47f23b30965a0ef668af1e639a23634e4532a deleted file mode 100644 index 359a966..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/15/d47f23b30965a0ef668af1e639a23634e4532a and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/16/8e382963b2ef0de835c22c48c2bf3a702e83a0 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/16/8e382963b2ef0de835c22c48c2bf3a702e83a0 deleted file mode 100644 index 0835b5a..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/16/8e382963b2ef0de835c22c48c2bf3a702e83a0 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/1c/dc834ac63fc5edefbbdcabf264026ccc8cf4a7 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/1c/dc834ac63fc5edefbbdcabf264026ccc8cf4a7 deleted file mode 100644 index e0b776b..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/1c/dc834ac63fc5edefbbdcabf264026ccc8cf4a7 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/1d/c36fd270ce97d05f4fa75c3c16917951d71768 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/1d/c36fd270ce97d05f4fa75c3c16917951d71768 deleted file mode 100644 index 829448e..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/1d/c36fd270ce97d05f4fa75c3c16917951d71768 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/21/a03f36ba451433c9fefe71d9fd05e80cefe458 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/21/a03f36ba451433c9fefe71d9fd05e80cefe458 deleted file mode 100644 index 8db52c7..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/21/a03f36ba451433c9fefe71d9fd05e80cefe458 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/29/56309db5fd77d3474462f613653d73787f214f b/tests/test_project_fixtures/test_non_root_git_project/git/objects/29/56309db5fd77d3474462f613653d73787f214f deleted file mode 100644 index 215b13d..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/29/56309db5fd77d3474462f613653d73787f214f and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/46f438a89972f9ce2d5151a825a5bfb7f7db4b b/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/46f438a89972f9ce2d5151a825a5bfb7f7db4b deleted file mode 100644 index a022075..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/46f438a89972f9ce2d5151a825a5bfb7f7db4b +++ /dev/null @@ -1,4 +0,0 @@ -x¥ŽM!ƒ]sŠ·7™ðó˜�ÄÞÁ5ð`$Ê`êõÅxÓÕ×´MC-%w�¨v½ÅÞ�CLA%3›”P`M¼ \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/5613c15e0a45ad460b4973dcdf942846b77b72 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/5613c15e0a45ad460b4973dcdf942846b77b72 deleted file mode 100644 index 71c146a..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/2c/5613c15e0a45ad460b4973dcdf942846b77b72 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/2f/3fa93ad05c33e1d0ccda111d881e192bccbc87 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/2f/3fa93ad05c33e1d0ccda111d881e192bccbc87 deleted file mode 100644 index b6b9461..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/2f/3fa93ad05c33e1d0ccda111d881e192bccbc87 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/30/b505e031fc496c88d36be5ed7892337c640223 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/30/b505e031fc496c88d36be5ed7892337c640223 deleted file mode 100644 index f49d09e..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/objects/30/b505e031fc496c88d36be5ed7892337c640223 +++ /dev/null @@ -1,2 +0,0 @@ -x¥�; -1@­sŠé…eÆ$ÎD,¼ƒõä§A³�õú®xË÷Š÷B«µ  YoFO |¦¤9EC죓�mÊFŒql3û µ!Qò·Öá,¯áÒ|oá‡øÅéýÃÓµJyL¡Õ#�5ìfÜá¶Hˆjµëx¤?ª,e¨tð<| \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/33/90cc679ea02b9ad1a57dc6ef711255b4f4d90c b/tests/test_project_fixtures/test_non_root_git_project/git/objects/33/90cc679ea02b9ad1a57dc6ef711255b4f4d90c deleted file mode 100644 index 7d7f517..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/33/90cc679ea02b9ad1a57dc6ef711255b4f4d90c and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/41/07cf9a6c4633c97bd7ee2a73353c88deca64a4 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/41/07cf9a6c4633c97bd7ee2a73353c88deca64a4 deleted file mode 100644 index 90e5aac..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/41/07cf9a6c4633c97bd7ee2a73353c88deca64a4 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/43/4e403e49cc1e2037d29695e0cb6477f20acc2e b/tests/test_project_fixtures/test_non_root_git_project/git/objects/43/4e403e49cc1e2037d29695e0cb6477f20acc2e deleted file mode 100644 index 4a2e35f..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/43/4e403e49cc1e2037d29695e0cb6477f20acc2e and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4a/d7b8980d409199892bb78d1c77164fc6446993 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/4a/d7b8980d409199892bb78d1c77164fc6446993 deleted file mode 100644 index b0463b9..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4a/d7b8980d409199892bb78d1c77164fc6446993 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4b/0dddde301971fc19f1817a22bf0948890ccacc b/tests/test_project_fixtures/test_non_root_git_project/git/objects/4b/0dddde301971fc19f1817a22bf0948890ccacc deleted file mode 100644 index 26178f2..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4b/0dddde301971fc19f1817a22bf0948890ccacc and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4c/f37def1d191c7c4b34e1053fa923e6d649525a b/tests/test_project_fixtures/test_non_root_git_project/git/objects/4c/f37def1d191c7c4b34e1053fa923e6d649525a deleted file mode 100644 index e152596..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4c/f37def1d191c7c4b34e1053fa923e6d649525a and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4d/00aeaddee6c0c490e5018fa1d40b3fb4fd55a4 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/4d/00aeaddee6c0c490e5018fa1d40b3fb4fd55a4 deleted file mode 100644 index e213d67..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/4d/00aeaddee6c0c490e5018fa1d40b3fb4fd55a4 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/56/26f87a33217c62ed70006bda0735aaa8578ee7 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/56/26f87a33217c62ed70006bda0735aaa8578ee7 deleted file mode 100644 index fa9f1c0..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/56/26f87a33217c62ed70006bda0735aaa8578ee7 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/57/97dee69dcb584dede25d7c02d34caf96d70236 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/57/97dee69dcb584dede25d7c02d34caf96d70236 deleted file mode 100644 index b20e733..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/57/97dee69dcb584dede25d7c02d34caf96d70236 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/59/e2ac235a403799063c7e7f2a137c462ac17ba2 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/59/e2ac235a403799063c7e7f2a137c462ac17ba2 deleted file mode 100644 index 1d2d86c..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/59/e2ac235a403799063c7e7f2a137c462ac17ba2 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/5c/f2c8f1e59f99ac2de981abf2b6adf6279ea3da b/tests/test_project_fixtures/test_non_root_git_project/git/objects/5c/f2c8f1e59f99ac2de981abf2b6adf6279ea3da deleted file mode 100644 index 64d0dfa..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/5c/f2c8f1e59f99ac2de981abf2b6adf6279ea3da and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/6b/f17bf7104d256ef447c26ecb37124331d29cae b/tests/test_project_fixtures/test_non_root_git_project/git/objects/6b/f17bf7104d256ef447c26ecb37124331d29cae deleted file mode 100644 index b3da19a..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/6b/f17bf7104d256ef447c26ecb37124331d29cae and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee b/tests/test_project_fixtures/test_non_root_git_project/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee deleted file mode 100644 index 66ccc09..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/dae90d4510701438cf671bb67772202f825891 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/dae90d4510701438cf671bb67772202f825891 deleted file mode 100644 index f03c030..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/dae90d4510701438cf671bb67772202f825891 +++ /dev/null @@ -1 +0,0 @@ -x+)JMU0´0a040031Q0000ŒÏÌË,ÉLÌÑ+¨d˜½U´ä’}jZ$Ï·ÝsKd¸e?°G(5ŠOŒÏ+ÍɉOËLÍI‰7é½R¯¼™3uÁû´®�Ï,™™< ÖBè0éÈÏCÒÒÓ¿OšËÒ¿N1~η+}Ýoà“i€ê‰»&>¤ìÙÜG³7]¼æìÝ­¹®<êÆ¡'=Áå,JU \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 deleted file mode 100644 index 250bef6..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/81/45e446f728f9ed6ba04294b4c880be74383949 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/81/45e446f728f9ed6ba04294b4c880be74383949 deleted file mode 100644 index 84e0a13..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/81/45e446f728f9ed6ba04294b4c880be74383949 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/82/bc1ebd64ca46c16193d8f8407127f0f3e4164c b/tests/test_project_fixtures/test_non_root_git_project/git/objects/82/bc1ebd64ca46c16193d8f8407127f0f3e4164c deleted file mode 100644 index bdee280..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/objects/82/bc1ebd64ca46c16193d8f8407127f0f3e4164c +++ /dev/null @@ -1,2 +0,0 @@ -x]ŽÁ -Â0 @+zAð<î2«âQDðîÅ«XºµÎŒµ)m&úÝþ€™ò/!IÑ`1_/7bøšN.³Ã¹} ¸î9Óˆa„8e�9f ñ‡Ô²“7tV}#M­}…¹ƒ*jôyžl”d¥UˆXÛ’ÔÔFÛÛcìlßýŽêVò·+I¥À)µOóå­CÓ6v×ý—8ÅÇ!:L \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/84/8eee04718d10f32f59ff9ae63afd8478ef68c4 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/84/8eee04718d10f32f59ff9ae63afd8478ef68c4 deleted file mode 100644 index d41572a..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/84/8eee04718d10f32f59ff9ae63afd8478ef68c4 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/88/c4bb3d2e2aa1968f90484f0b6cd77b7c4f7c57 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/88/c4bb3d2e2aa1968f90484f0b6cd77b7c4f7c57 deleted file mode 100644 index 3f19464..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/88/c4bb3d2e2aa1968f90484f0b6cd77b7c4f7c57 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/89/5be6939590f9199877bf41d9fe2ca0f5f501eb b/tests/test_project_fixtures/test_non_root_git_project/git/objects/89/5be6939590f9199877bf41d9fe2ca0f5f501eb deleted file mode 100644 index 3e08383..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/89/5be6939590f9199877bf41d9fe2ca0f5f501eb and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/8c/38f3f3dad51e4585f3984282c2a4bec5349c1e b/tests/test_project_fixtures/test_non_root_git_project/git/objects/8c/38f3f3dad51e4585f3984282c2a4bec5349c1e deleted file mode 100644 index e68f806..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/8c/38f3f3dad51e4585f3984282c2a4bec5349c1e and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/255685e632623f016e1ecf18a4e9d58746e1ce b/tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/255685e632623f016e1ecf18a4e9d58746e1ce deleted file mode 100644 index 2299381..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/255685e632623f016e1ecf18a4e9d58746e1ce and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/be1b0a394f7e215f9cf6d48e8bfdc3b00e1c80 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/be1b0a394f7e215f9cf6d48e8bfdc3b00e1c80 deleted file mode 100644 index c09f99a..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/8f/be1b0a394f7e215f9cf6d48e8bfdc3b00e1c80 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/3c6cc338b8f9d2530f21dd94b939fbc42cf1c4 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/3c6cc338b8f9d2530f21dd94b939fbc42cf1c4 deleted file mode 100644 index e62ddc5..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/3c6cc338b8f9d2530f21dd94b939fbc42cf1c4 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/ea44a218fbd2f408430959283f0419c921093e b/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/ea44a218fbd2f408430959283f0419c921093e deleted file mode 100644 index 263fc8c..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/91/ea44a218fbd2f408430959283f0419c921093e and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/98/6913f97e6222f14be4db7d10e90430cc43cc4d b/tests/test_project_fixtures/test_non_root_git_project/git/objects/98/6913f97e6222f14be4db7d10e90430cc43cc4d deleted file mode 100644 index c2660a4..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/98/6913f97e6222f14be4db7d10e90430cc43cc4d and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/353778696f76f0288affbc392eeefa4df70e90 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/353778696f76f0288affbc392eeefa4df70e90 deleted file mode 100644 index 961f157..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/353778696f76f0288affbc392eeefa4df70e90 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/b51574d23f6566590cf6bb9ce31868466be03f b/tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/b51574d23f6566590cf6bb9ce31868466be03f deleted file mode 100644 index d07a118..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/objects/9b/b51574d23f6566590cf6bb9ce31868466be03f +++ /dev/null @@ -1,5 +0,0 @@ -x]PËjÃ0ìY_±�ƒ�;m! øRrÈ­·„m­�ZY2zÒ¯¯d%MSa„™™�™U#TO�Ë»d÷´ŠqÙ¯ÁÙ.[„Ìà%êÚ"ƒæÛ�Zö -ʼôß -”„eQ>gE™- (‹õCI:­ ´sÖi¤ø0*mÁIîÝ‘ -n½�0$ -Ùd˜³æ¢xïÓ¸’fƒJÒŠÚ8\¨ô*ÊÁùšð‡Kny- ‚7í0b G” eËÑxâ}#§Æ°^üe‚ÍŸˆ�~ÿC(“N“�GÖVÉ&YÜ GÁLC¢0ÞiÂYrÙ*ß8«vAšÖþ�¶S«B錚µ>ÑO<�ƒÚoÅ¿±Úù×ó’/Ô�2Hc‰ý6™Ïo{„Ð4‘N:UºFï¥ÅuLÿ?v¼ºœ �äÓØŸº \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/9d/1dcfdaf1a6857c5f83dc27019c7600e1ffaff8 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/9d/1dcfdaf1a6857c5f83dc27019c7600e1ffaff8 deleted file mode 100644 index 0f6ee3b..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/9d/1dcfdaf1a6857c5f83dc27019c7600e1ffaff8 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/a3/f20003e5407a44000854c41ba29c06a3bbba82 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/a3/f20003e5407a44000854c41ba29c06a3bbba82 deleted file mode 100644 index 95bd2eb..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/a3/f20003e5407a44000854c41ba29c06a3bbba82 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/aa/66ac1debe2ae5fd39cd8e65f6dfd9786649490 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/aa/66ac1debe2ae5fd39cd8e65f6dfd9786649490 deleted file mode 100644 index 6ec0e99..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/aa/66ac1debe2ae5fd39cd8e65f6dfd9786649490 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/b8/da44fc3f868ffbd94e347927f138be8b5b5b2d b/tests/test_project_fixtures/test_non_root_git_project/git/objects/b8/da44fc3f868ffbd94e347927f138be8b5b5b2d deleted file mode 100644 index 416d9b8..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/b8/da44fc3f868ffbd94e347927f138be8b5b5b2d and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/bd/fc3d5864d2ad429269f80d739ef58ded2d4b35 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/bd/fc3d5864d2ad429269f80d739ef58ded2d4b35 deleted file mode 100644 index 7bfac15..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/bd/fc3d5864d2ad429269f80d739ef58ded2d4b35 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/bf/a71e37ed417bd9acf5ef4a44975f7bfd10341a b/tests/test_project_fixtures/test_non_root_git_project/git/objects/bf/a71e37ed417bd9acf5ef4a44975f7bfd10341a deleted file mode 100644 index b4d68db..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/bf/a71e37ed417bd9acf5ef4a44975f7bfd10341a and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/cb/96855f9aa7aae003123eca1addad870c7b8fde b/tests/test_project_fixtures/test_non_root_git_project/git/objects/cb/96855f9aa7aae003123eca1addad870c7b8fde deleted file mode 100644 index df8c6f3..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/cb/96855f9aa7aae003123eca1addad870c7b8fde and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 deleted file mode 100644 index 7112238..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/ea/9048c5860ddad87cb377574bd627fa4a7ccd4c b/tests/test_project_fixtures/test_non_root_git_project/git/objects/ea/9048c5860ddad87cb377574bd627fa4a7ccd4c deleted file mode 100644 index c0f30e5..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/ea/9048c5860ddad87cb377574bd627fa4a7ccd4c and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/22245e6a3ce63b99e0beeb8403031edd08ed50 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/22245e6a3ce63b99e0beeb8403031edd08ed50 deleted file mode 100644 index 343ce14..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/22245e6a3ce63b99e0beeb8403031edd08ed50 +++ /dev/null @@ -1 +0,0 @@ -x¥ŽAj1 E»ö)´�GÙPJ½Cײd§&u\ŒÓ^¿Sr„,߇÷yÒ[«®/sä ™£Å >lV•5�¤•È&ÝF&E1ß<òm·‚kà#¹%;õ‹_88Ï>•D…4a2|ŸŸ}À;ÿT…�žF—+¼ê?xº4®_Géí �ƒ]c€ƒ]¬5ûº‡ÎüÄ…9«B¿B«—Á³ö›ùÖ‚Nˆ \ No newline at end of file diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/ff8f0c6cca456e2e132263fd70ac9593ac1b53 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/ff8f0c6cca456e2e132263fd70ac9593ac1b53 deleted file mode 100644 index 19affa3..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f1/ff8f0c6cca456e2e132263fd70ac9593ac1b53 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/7bb4d66d0955079a1365ba91ae91671796ce85 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/7bb4d66d0955079a1365ba91ae91671796ce85 deleted file mode 100644 index 1ee1d03..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/7bb4d66d0955079a1365ba91ae91671796ce85 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/a170bb234332d6ecef3b4348f2da0e758c59a7 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/a170bb234332d6ecef3b4348f2da0e758c59a7 deleted file mode 100644 index ea64db9..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/f6/a170bb234332d6ecef3b4348f2da0e758c59a7 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/objects/fb/3701d6fd9f5fa295ab981f9fac08c3156045d2 b/tests/test_project_fixtures/test_non_root_git_project/git/objects/fb/3701d6fd9f5fa295ab981f9fac08c3156045d2 deleted file mode 100644 index 0f1de85..0000000 Binary files a/tests/test_project_fixtures/test_non_root_git_project/git/objects/fb/3701d6fd9f5fa295ab981f9fac08c3156045d2 and /dev/null differ diff --git a/tests/test_project_fixtures/test_non_root_git_project/git/refs/heads/master b/tests/test_project_fixtures/test_non_root_git_project/git/refs/heads/master deleted file mode 100644 index 7ceae76..0000000 --- a/tests/test_project_fixtures/test_non_root_git_project/git/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -f122245e6a3ce63b99e0beeb8403031edd08ed50 diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/.gitignore b/tests/test_project_fixtures/test_project_add_not_null_column/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/manage.py b/tests/test_project_fixtures/test_project_add_not_null_column/manage.py deleted file mode 100644 index f4c75b2..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_add_not_null_column.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/__init__.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/admin.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/apps.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/migrations/0001_create_table.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_app/migrations/0001_create_table.py deleted file mode 100644 index 09d00ce..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/migrations/0001_create_table.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:05 -from __future__ import unicode_literals - -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)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/migrations/0002_add_new_not_null_field.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_app/migrations/0002_add_new_not_null_field.py deleted file mode 100644 index 7347b0f..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/migrations/0002_add_new_not_null_field.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0001_create_table'), - ] - - operations = [ - migrations.AddField( - model_name='a', - name='new_not_null_field', - field=models.IntegerField(default=1), - preserve_default=False, - ), - ] diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/models.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_app/models.py deleted file mode 100644 index dda78f1..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/models.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.db import models - -class A(models.Model): - null_field = models.IntegerField(null=True) - new_not_null_field = models.IntegerField(null=False) diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/tests.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/views.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/__init__.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/settings.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/settings.py deleted file mode 100644 index c34167f..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/settings.py +++ /dev/null @@ -1,130 +0,0 @@ -""" -Django settings for test_project_add_not_null_column project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project_add_not_null_column.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project_add_not_null_column.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/urls.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/wsgi.py b/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/wsgi.py deleted file mode 100644 index 6741b31..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column/test_project_add_not_null_column/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_add_not_null_column.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/.gitignore b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/manage.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/manage.py deleted file mode 100644 index d533aa0..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_add_not_null_column_followed_by_default.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/__init__.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/admin.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/apps.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations/0001_create_table.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations/0001_create_table.py deleted file mode 100644 index 09d00ce..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations/0001_create_table.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:05 -from __future__ import unicode_literals - -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)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations/0002_add_new_not_null_field.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations/0002_add_new_not_null_field.py deleted file mode 100644 index faa3052..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations/0002_add_new_not_null_field.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:06 -from __future__ import unicode_literals - -from django.db import migrations, models - -from test_app import migrations_utils - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0001_create_table'), - ] - - operations = [ - migrations.AddField( - model_name='a', - name='new_not_null_field', - field=models.IntegerField(default=1), - preserve_default=False, - ), - migrations_utils.AddDefaultValue( - model_name='a', - name='new_not_null_field', - value='1', - ) - ] diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations_utils.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations_utils.py deleted file mode 100644 index 8805d56..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/migrations_utils.py +++ /dev/null @@ -1,72 +0,0 @@ -from django.db.migrations.operations.base import Operation -from django.utils.functional import cached_property - - -class AddDefaultValue(Operation): - reversible = True - - sql_base = "ALTER TABLE `{0}` ALTER COLUMN `{1}` SET DEFAULT '{2}';" - sql_base_reverse = "ALTER TABLE `{0}` ALTER COLUMN `{1}` DROP DEFAULT;" - - def __init__(self, model_name, name, value): - self.model_name = model_name - self.name = name - self.value = value - - def deconstruct(self): - kwargs = { - 'model_name': self.model_name, - 'name': self.name, - 'value': self.value - } - return ( - self.__class__.__name__, - [], - kwargs - ) - - @classmethod - def is_correct_vendor(cls, vendor): - #return vendor.startswith('mysql') or vendor.startswith('postgre') - return True - - def state_forwards(self, app_label, state): - """ - Take the state from the previous migration, and mutate it - so that it matches what this migration would perform. - """ - # Nothing to do - # because the field should have the default setted anyway - pass - - def database_forwards( - self, app_label, schema_editor, from_state, to_state): - """ - Perform the mutation on the database schema in the normal - (forwards) direction. - """ - if self.is_correct_vendor(schema_editor.connection.vendor): - to_model = to_state.apps.get_model(app_label, self.model_name) - sql_query = self.sql_base.format( - to_model._meta.db_table, self.name, self.value) - schema_editor.execute(sql_query) - - def database_backwards( - self, app_label, schema_editor, from_state, to_state): - """ - Perform the mutation on the database schema in the reverse - direction - e.g. if this were CreateModel, it would in fact - drop the model's table. - """ - if self.is_correct_vendor(schema_editor.connection.vendor): - to_model = to_state.apps.get_model(app_label, self.model_name) - sql_query = self.sql_base_reverse.format( - to_model._meta.db_table, self.name) - schema_editor.execute(sql_query) - - def describe(self): - """ - Output a brief summary of what the action does. - """ - return 'Add to field {0} the default value {1}'.format( - self.name, self.value) diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/models.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/models.py deleted file mode 100644 index dda78f1..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/models.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.db import models - -class A(models.Model): - null_field = models.IntegerField(null=True) - new_not_null_field = models.IntegerField(null=False) diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/tests.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/views.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/__init__.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/settings.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/settings.py deleted file mode 100644 index f0c3aa1..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/settings.py +++ /dev/null @@ -1,129 +0,0 @@ -""" -Django settings for test_project_add_not_null_column_followed_by_default project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project_add_not_null_column_followed_by_default.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project_add_not_null_column_followed_by_default.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/urls.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/wsgi.py b/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/wsgi.py deleted file mode 100644 index 6741b31..0000000 --- a/tests/test_project_fixtures/test_project_add_not_null_column_followed_by_default/test_project_add_not_null_column_followed_by_default/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_add_not_null_column.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_project_alter_column/.gitignore b/tests/test_project_fixtures/test_project_alter_column/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_project_alter_column/manage.py b/tests/test_project_fixtures/test_project_alter_column/manage.py deleted file mode 100644 index c1ee174..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_alter_column.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_project_alter_column/test_app/__init__.py b/tests/test_project_fixtures/test_project_alter_column/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_alter_column/test_app/admin.py b/tests/test_project_fixtures/test_project_alter_column/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_project_alter_column/test_app/apps.py b/tests/test_project_fixtures/test_project_alter_column/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_project_alter_column/test_app/migrations/0001_initial.py b/tests/test_project_fixtures/test_project_alter_column/test_app/migrations/0001_initial.py deleted file mode 100644 index faf8b51..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_app/migrations/0001_initial.py +++ /dev/null @@ -1,21 +0,0 @@ -# Generated by Django 2.0.1 on 2018-01-14 12:48 - -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')), - ('code', models.CharField(max_length=10, null=True)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_alter_column/test_app/migrations/0002_alter_column.py b/tests/test_project_fixtures/test_project_alter_column/test_app/migrations/0002_alter_column.py deleted file mode 100644 index 4292dd0..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_app/migrations/0002_alter_column.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.0.1 on 2018-01-14 12:48 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='a', - name='code', - field=models.IntegerField(null=True), - ), - ] diff --git a/tests/test_project_fixtures/test_project_alter_column/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_project_alter_column/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_alter_column/test_app/models.py b/tests/test_project_fixtures/test_project_alter_column/test_app/models.py deleted file mode 100644 index d4b75cf..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_app/models.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.db import models - -class A(models.Model): - code = models.IntegerField(null=True) diff --git a/tests/test_project_fixtures/test_project_alter_column/test_app/tests.py b/tests/test_project_fixtures/test_project_alter_column/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_project_alter_column/test_app/views.py b/tests/test_project_fixtures/test_project_alter_column/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/__init__.py b/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/settings.py b/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/settings.py deleted file mode 100644 index 93a6b70..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/settings.py +++ /dev/null @@ -1,129 +0,0 @@ -""" -Django settings for test_project_alter_column project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project_alter_column.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project_alter_column.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django_fake_database_backends.backends.mysql' - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/urls.py b/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/wsgi.py b/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/wsgi.py deleted file mode 100644 index 749e98c..0000000 --- a/tests/test_project_fixtures/test_project_alter_column/test_project_alter_column/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_alter_column.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/.gitignore b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/manage.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/manage.py deleted file mode 100644 index 6f60aa1..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_create_table_with_not_null_column.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/__init__.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/admin.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/apps.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/migrations/0001_create_table_with_not_null_field.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/migrations/0001_create_table_with_not_null_field.py deleted file mode 100644 index d391b69..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/migrations/0001_create_table_with_not_null_field.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 13:47 -from __future__ import unicode_literals - -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')), - ('not_null_field', models.IntegerField()), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/migrations/0002_b_foreign_keys.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/migrations/0002_b_foreign_keys.py deleted file mode 100644 index 9ffdb89..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/migrations/0002_b_foreign_keys.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 2.0.1 on 2018-05-07 18:35 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0001_create_table_with_not_null_field'), - ] - - operations = [ - migrations.CreateModel( - name='B', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('not_null_fk', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='nn_b', to='test_app.A')), - ('null_fk', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='b', to='test_app.A')), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/models.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/models.py deleted file mode 100644 index b347a42..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/models.py +++ /dev/null @@ -1,9 +0,0 @@ -from django.db import models - -class A(models.Model): - not_null_field = models.IntegerField(null=False) - - -class B(models.Model): - not_null_fk = models.ForeignKey(to=A, null=False, on_delete=models.CASCADE, related_name='nn_b') - null_fk = models.ForeignKey(to=A, null=True, on_delete=models.CASCADE, related_name='b') diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/tests.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/views.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/__init__.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/settings.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/settings.py deleted file mode 100644 index d1cd093..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/settings.py +++ /dev/null @@ -1,130 +0,0 @@ -""" -Django settings for test_project_create_table_with_not_null_column project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project_create_table_with_not_null_column.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project_create_table_with_not_null_column.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/urls.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/wsgi.py b/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/wsgi.py deleted file mode 100644 index 6741b31..0000000 --- a/tests/test_project_fixtures/test_project_create_table_with_not_null_column/test_project_create_table_with_not_null_column/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_add_not_null_column.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_project_drop_column/.gitignore b/tests/test_project_fixtures/test_project_drop_column/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_project_drop_column/manage.py b/tests/test_project_fixtures/test_project_drop_column/manage.py deleted file mode 100644 index 378f8de..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_drop_column.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_project_drop_column/test_app/__init__.py b/tests/test_project_fixtures/test_project_drop_column/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_drop_column/test_app/admin.py b/tests/test_project_fixtures/test_project_drop_column/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_project_drop_column/test_app/apps.py b/tests/test_project_fixtures/test_project_drop_column/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_project_drop_column/test_app/migrations/0001_create_table.py b/tests/test_project_fixtures/test_project_drop_column/test_app/migrations/0001_create_table.py deleted file mode 100644 index a4b2b15..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_app/migrations/0001_create_table.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:36 -from __future__ import unicode_literals - -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)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_drop_column/test_app/migrations/0002_drop_column.py b/tests/test_project_fixtures/test_project_drop_column/test_app/migrations/0002_drop_column.py deleted file mode 100644 index 7a9637d..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_app/migrations/0002_drop_column.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:36 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0001_create_table'), - ] - - operations = [ - migrations.RemoveField( - model_name='a', - name='null_field', - ), - ] diff --git a/tests/test_project_fixtures/test_project_drop_column/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_project_drop_column/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_drop_column/test_app/models.py b/tests/test_project_fixtures/test_project_drop_column/test_app/models.py deleted file mode 100644 index bf21b1d..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_app/models.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.db import models - -class A(models.Model): - pass diff --git a/tests/test_project_fixtures/test_project_drop_column/test_app/tests.py b/tests/test_project_fixtures/test_project_drop_column/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_project_drop_column/test_app/views.py b/tests/test_project_fixtures/test_project_drop_column/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/__init__.py b/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/settings.py b/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/settings.py deleted file mode 100644 index cdd3b93..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/settings.py +++ /dev/null @@ -1,130 +0,0 @@ -""" -Django settings for test_project_drop_column project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project_drop_column.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project_drop_column.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/urls.py b/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/wsgi.py b/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/wsgi.py deleted file mode 100644 index 6741b31..0000000 --- a/tests/test_project_fixtures/test_project_drop_column/test_project_drop_column/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_add_not_null_column.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_project_ignore_migration/.gitignore b/tests/test_project_fixtures/test_project_ignore_migration/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_project_ignore_migration/manage.py b/tests/test_project_fixtures/test_project_ignore_migration/manage.py deleted file mode 100644 index eba4c1f..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_ignore_migration.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_app/__init__.py b/tests/test_project_fixtures/test_project_ignore_migration/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_app/admin.py b/tests/test_project_fixtures/test_project_ignore_migration/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_app/apps.py b/tests/test_project_fixtures/test_project_ignore_migration/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_app/migrations/0001_create_table.py b/tests/test_project_fixtures/test_project_ignore_migration/test_app/migrations/0001_create_table.py deleted file mode 100644 index d847af6..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_app/migrations/0001_create_table.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:15 -from __future__ import unicode_literals - -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)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_app/migrations/0002_rename_table.py b/tests/test_project_fixtures/test_project_ignore_migration/test_app/migrations/0002_rename_table.py deleted file mode 100644 index d521e87..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_app/migrations/0002_rename_table.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:15 -from __future__ import unicode_literals - -from django.db import migrations - -import django_migration_linter as linter - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0001_create_table'), - ] - - operations = [ - linter.IgnoreMigration(), - migrations.RenameModel( - old_name='A', - new_name='B', - ), - ] diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_project_ignore_migration/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_app/models.py b/tests/test_project_fixtures/test_project_ignore_migration/test_app/models.py deleted file mode 100644 index 2633c55..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_app/models.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.db import models - -class B(models.Model): - null_field = models.IntegerField(null=True) diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_app/tests.py b/tests/test_project_fixtures/test_project_ignore_migration/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_app/views.py b/tests/test_project_fixtures/test_project_ignore_migration/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/__init__.py b/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/settings.py b/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/settings.py deleted file mode 100644 index af1db8f..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/settings.py +++ /dev/null @@ -1,130 +0,0 @@ -""" -Django settings for test_project_ignore_migration project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project_ignore_migration.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project_ignore_migration.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/urls.py b/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/wsgi.py b/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/wsgi.py deleted file mode 100644 index f3abf75..0000000 --- a/tests/test_project_fixtures/test_project_ignore_migration/test_project_ignore_migration/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_ignore_migration.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_project_multi_commit/.gitignore b/tests/test_project_fixtures/test_project_multi_commit/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/COMMIT_EDITMSG b/tests/test_project_fixtures/test_project_multi_commit/git/COMMIT_EDITMSG deleted file mode 100644 index 122f5dd..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -Backward compatible migrations diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/HEAD b/tests/test_project_fixtures/test_project_multi_commit/git/HEAD deleted file mode 100644 index cb089cd..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/config b/tests/test_project_fixtures/test_project_multi_commit/git/config deleted file mode 100644 index eeb8dd7..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/config +++ /dev/null @@ -1,5 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = false - bare = false - logallrefupdates = true diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/description b/tests/test_project_fixtures/test_project_multi_commit/git/description deleted file mode 100644 index 498b267..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/index b/tests/test_project_fixtures/test_project_multi_commit/git/index deleted file mode 100644 index 467960d..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/index and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/info/exclude b/tests/test_project_fixtures/test_project_multi_commit/git/info/exclude deleted file mode 100644 index a5196d1..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/logs/HEAD b/tests/test_project_fixtures/test_project_multi_commit/git/logs/HEAD deleted file mode 100644 index d0cd6b0..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/logs/HEAD +++ /dev/null @@ -1,3 +0,0 @@ -0000000000000000000000000000000000000000 dbd8d7899446de17d8cf8e57aa7eddb1433bc9c3 David-Wobrock 1511996012 +0100 commit (initial): Init -dbd8d7899446de17d8cf8e57aa7eddb1433bc9c3 d7125d5f4f0cc9623f670a66c54f131acc50032d David-Wobrock 1511996033 +0100 commit: Not working stuff -d7125d5f4f0cc9623f670a66c54f131acc50032d 1021d98b5943db56122c1f848f371ddc38788d0f David-Wobrock 1511996049 +0100 commit: Backward compatible migrations diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/logs/refs/heads/master b/tests/test_project_fixtures/test_project_multi_commit/git/logs/refs/heads/master deleted file mode 100644 index d0cd6b0..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/logs/refs/heads/master +++ /dev/null @@ -1,3 +0,0 @@ -0000000000000000000000000000000000000000 dbd8d7899446de17d8cf8e57aa7eddb1433bc9c3 David-Wobrock 1511996012 +0100 commit (initial): Init -dbd8d7899446de17d8cf8e57aa7eddb1433bc9c3 d7125d5f4f0cc9623f670a66c54f131acc50032d David-Wobrock 1511996033 +0100 commit: Not working stuff -d7125d5f4f0cc9623f670a66c54f131acc50032d 1021d98b5943db56122c1f848f371ddc38788d0f David-Wobrock 1511996049 +0100 commit: Backward compatible migrations diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/09/d00ce23e0b42f2c18895ee5fa577f57f14b2ac b/tests/test_project_fixtures/test_project_multi_commit/git/objects/09/d00ce23e0b42f2c18895ee5fa577f57f14b2ac deleted file mode 100644 index 4d7d160..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/objects/09/d00ce23e0b42f2c18895ee5fa577f57f14b2ac +++ /dev/null @@ -1,3 +0,0 @@ -x]PËjÃ0ìÙ_±�ƒ�;Ôm øRrÈ­·„m­�ZY2zÒ¯¯dåY„˜™�™UÃee™?Ì }L¡•”‰~Öté«G¢¼£@U¤ÐaóU‹^B‘Eö RÀ2/^Ò"O—%O«¼Œ:% ¤³Æ*$Ø0JeÀ -æÌ‘pfœ×QÒÉ/£ÍY7°Þ…1)ô7à•QËk­a¦’«(»€óU�;L0Ãj|(‹£8¢ (Z†ÚŸ“ð89úí|à…ñ67o -Ýú{_&™&=ï�¨¬âu¼¸C;†œê*„a¸“˜Ñø¼U¶¶Fn½4©Ý‹´S­|錊 µ:’o<ž�ÊmÅ~±Úºßs’T�ÔHB‰Ý&žÏï{øÐ$–s2UºFï„ÁUH÷‚)ãÿüájwr>Dqá£& \ No newline at end of file diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/10/21d98b5943db56122c1f848f371ddc38788d0f b/tests/test_project_fixtures/test_project_multi_commit/git/objects/10/21d98b5943db56122c1f848f371ddc38788d0f deleted file mode 100644 index 66e3ca3..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/10/21d98b5943db56122c1f848f371ddc38788d0f and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/2c/2d5b22159ce4123f0ecd22d631684742a6f298 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/2c/2d5b22159ce4123f0ecd22d631684742a6f298 deleted file mode 100644 index 5b47466..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/2c/2d5b22159ce4123f0ecd22d631684742a6f298 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/2f/eca9a38c232b4cb06c39d2db0b3d9be23a67e2 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/2f/eca9a38c232b4cb06c39d2db0b3d9be23a67e2 deleted file mode 100644 index 9aecb91..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/2f/eca9a38c232b4cb06c39d2db0b3d9be23a67e2 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/3a/c947d350f32c18f403dce1868ac36f275fa7b8 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/3a/c947d350f32c18f403dce1868ac36f275fa7b8 deleted file mode 100644 index 4a46d48..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/3a/c947d350f32c18f403dce1868ac36f275fa7b8 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 deleted file mode 100644 index adf6411..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/4c/e3b40413b7f8938d91828c437f33f66d57fcc9 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/4c/e3b40413b7f8938d91828c437f33f66d57fcc9 deleted file mode 100644 index 24365e0..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/objects/4c/e3b40413b7f8938d91828c437f33f66d57fcc9 +++ /dev/null @@ -1 +0,0 @@ -xU�Ak„0…{öW ìA·¨¨]l<JK½õVJˆf””8‘)ý÷Mâ®íæÞ¼yßK:¥;8ÕÅÍ²Û z-$� ¬vÈ¼à ·( û�§/N£†2/˼MPå}VYU»kswŠ£'`lXíj�1�Ó¬�…•¤ G¦¤uij‰6£y¹è.¾IŽ&5-)LnÁ;£^ñe�·Ë(ù3å»xl¢Ü8# ¤^â-|Ñ’ØâbŸç8…¸(ŠŠq!á7#m­J±A¢ñ1 KŸ[ žýó}£«¸…xö‹ÉÎò¼ÐžŸ°�y¼EzÝŸM h‡å�Â3úÚê´Û7ä¯dqD³‘|ÛöݬxîêC÷Ú¿ºÁ‹U \ No newline at end of file diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/5e/76156da23b8134fbb1248d87f8af842a573002 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/5e/76156da23b8134fbb1248d87f8af842a573002 deleted file mode 100644 index dd45c6d..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/5e/76156da23b8134fbb1248d87f8af842a573002 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/63/973d01988ba594743a8046c9c88c2aa527d307 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/63/973d01988ba594743a8046c9c88c2aa527d307 deleted file mode 100644 index 3f771d5..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/63/973d01988ba594743a8046c9c88c2aa527d307 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/67/41b31d80b759d26496e68078ea8c6993a5b206 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/67/41b31d80b759d26496e68078ea8c6993a5b206 deleted file mode 100644 index cf19499..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/objects/67/41b31d80b759d26496e68078ea8c6993a5b206 +++ /dev/null @@ -1 +0,0 @@ -xm�OOA Å=ϧhö‰îãE& Á(ÀxœvºË�Ît3S@¿½Ëžš¦¯ï÷Ú5ñîoŠ¢P_Ëé jŽ�o¡áä£`2‚YL—x‹µÀ¥–JÍð»ãŒdƒp^¶DvM6ƒ…ÀnGxG¸G‚½Mþ4Š6 ƒª²]G¾¶â9VUï÷Ú'{x8 €coî34žð2¢ÚˆtùIkÇu.ÝÖÆ–ÿ2Õ4F=*G#½áƒ°vØÿŒ¢¹õZÏT>tœ8+Õ$pv)ë^ep´(æØ›«¨Jq.1î}âXf‡�Ý‘ ŠñÛË|º0ËÉj5›O—æc1þ|Ÿ·P\ÿÏXçLd1qGdj¦]8Ùˆ�m.†J]¡àþK0ª_òCš€ \ No newline at end of file diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/73/47b0f2a9845fa268ad4a19967c706e5d7be38b b/tests/test_project_fixtures/test_project_multi_commit/git/objects/73/47b0f2a9845fa268ad4a19967c706e5d7be38b deleted file mode 100644 index 621f4fc..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/73/47b0f2a9845fa268ad4a19967c706e5d7be38b and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee b/tests/test_project_fixtures/test_project_multi_commit/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee deleted file mode 100644 index 66ccc09..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/73/5de5db8bc5e1ed29b3cb7ece62b5e7c8db06ee and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 deleted file mode 100644 index 250bef6..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/7c/e503c2dd97ba78597f6ff6e4393132753573f6 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/80/c1a28714bc4471a440cae6c348c7d0dfc76eed b/tests/test_project_fixtures/test_project_multi_commit/git/objects/80/c1a28714bc4471a440cae6c348c7d0dfc76eed deleted file mode 100644 index 9f46919..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/80/c1a28714bc4471a440cae6c348c7d0dfc76eed and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/84/d29d064c9671c40165b0d7a852b61cc02aef50 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/84/d29d064c9671c40165b0d7a852b61cc02aef50 deleted file mode 100644 index 043f195..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/84/d29d064c9671c40165b0d7a852b61cc02aef50 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/88/80cfa9557a6ce785b43fb300748310b7e995ed b/tests/test_project_fixtures/test_project_multi_commit/git/objects/88/80cfa9557a6ce785b43fb300748310b7e995ed deleted file mode 100644 index 688ed38..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/88/80cfa9557a6ce785b43fb300748310b7e995ed and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/8c/38f3f3dad51e4585f3984282c2a4bec5349c1e b/tests/test_project_fixtures/test_project_multi_commit/git/objects/8c/38f3f3dad51e4585f3984282c2a4bec5349c1e deleted file mode 100644 index e68f806..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/8c/38f3f3dad51e4585f3984282c2a4bec5349c1e and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/91/ea44a218fbd2f408430959283f0419c921093e b/tests/test_project_fixtures/test_project_multi_commit/git/objects/91/ea44a218fbd2f408430959283f0419c921093e deleted file mode 100644 index 263fc8c..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/91/ea44a218fbd2f408430959283f0419c921093e and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/92/8f9938db104a389b465923b8ea1fcce7b5c678 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/92/8f9938db104a389b465923b8ea1fcce7b5c678 deleted file mode 100644 index b6aaa40..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/92/8f9938db104a389b465923b8ea1fcce7b5c678 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/b2/4c3cadaa1bed0689b23beffe4dc11ea7220f80 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/b2/4c3cadaa1bed0689b23beffe4dc11ea7220f80 deleted file mode 100644 index 22e926a..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/objects/b2/4c3cadaa1bed0689b23beffe4dc11ea7220f80 +++ /dev/null @@ -1 +0,0 @@ -x%ŒA ]sŠ¿76¼R($Ƹð®�MµÓ�··�‹—¼YÌ4?”;ÔðH±dv6h7(Ú ï#²lV#˜£²£µ,³hßW¢XK™›h[cö3¥•nþ=óé^ÃZã“μc÷ùãu*~^ºÍ¼4àœ‘t”�RìˆÆo, \ No newline at end of file diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/c0/2fb5754a33cbcd4408dc9e50260406fb6ee44a b/tests/test_project_fixtures/test_project_multi_commit/git/objects/c0/2fb5754a33cbcd4408dc9e50260406fb6ee44a deleted file mode 100644 index 8e90ccf..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/c0/2fb5754a33cbcd4408dc9e50260406fb6ee44a and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/d7/125d5f4f0cc9623f670a66c54f131acc50032d b/tests/test_project_fixtures/test_project_multi_commit/git/objects/d7/125d5f4f0cc9623f670a66c54f131acc50032d deleted file mode 100644 index 7634fdc..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/d7/125d5f4f0cc9623f670a66c54f131acc50032d and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/db/d8d7899446de17d8cf8e57aa7eddb1433bc9c3 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/db/d8d7899446de17d8cf8e57aa7eddb1433bc9c3 deleted file mode 100644 index 2dc6a73..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/db/d8d7899446de17d8cf8e57aa7eddb1433bc9c3 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/e0/e9599616de90471fbedcf6627e3392aee37e47 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/e0/e9599616de90471fbedcf6627e3392aee37e47 deleted file mode 100644 index 8e9d3bd..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/e0/e9599616de90471fbedcf6627e3392aee37e47 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 deleted file mode 100644 index 7112238..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/objects/fc/04070e8336f17e3b2402586653623e6bb51f67 b/tests/test_project_fixtures/test_project_multi_commit/git/objects/fc/04070e8336f17e3b2402586653623e6bb51f67 deleted file mode 100644 index a0339be..0000000 Binary files a/tests/test_project_fixtures/test_project_multi_commit/git/objects/fc/04070e8336f17e3b2402586653623e6bb51f67 and /dev/null differ diff --git a/tests/test_project_fixtures/test_project_multi_commit/git/refs/heads/master b/tests/test_project_fixtures/test_project_multi_commit/git/refs/heads/master deleted file mode 100644 index 3add879..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/git/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -1021d98b5943db56122c1f848f371ddc38788d0f diff --git a/tests/test_project_fixtures/test_project_multi_commit/manage.py b/tests/test_project_fixtures/test_project_multi_commit/manage.py deleted file mode 100644 index e0e9599..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_multi_commit.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/__init__.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/admin.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/apps.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/0001_create_table.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/0001_create_table.py deleted file mode 100644 index 09d00ce..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/0001_create_table.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:05 -from __future__ import unicode_literals - -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)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/0002_add_new_not_null_field.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/0002_add_new_not_null_field.py deleted file mode 100644 index 7347b0f..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/0002_add_new_not_null_field.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0001_create_table'), - ] - - operations = [ - migrations.AddField( - model_name='a', - name='new_not_null_field', - field=models.IntegerField(default=1), - preserve_default=False, - ), - ] diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/0003_add_new_nullable_field.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/0003_add_new_nullable_field.py deleted file mode 100644 index 4ce3b40..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/0003_add_new_nullable_field.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-26 20:34 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0002_add_new_not_null_field'), - ] - - operations = [ - migrations.AddField( - model_name='a', - name='new_nullable_field', - field=models.IntegerField(null=True), - ), - ] diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/models.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/models.py deleted file mode 100644 index 928f993..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_app/models.py +++ /dev/null @@ -1,6 +0,0 @@ -from django.db import models - -class A(models.Model): - null_field = models.IntegerField(null=True) - new_not_null_field = models.IntegerField(null=False) - new_nullable_field = models.IntegerField(null=True) diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/tests.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_app/views.py b/tests/test_project_fixtures/test_project_multi_commit/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/__init__.py b/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/settings.py b/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/settings.py deleted file mode 100644 index c5439eb..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/settings.py +++ /dev/null @@ -1,129 +0,0 @@ -""" -Django settings for test_project_multi_commit project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project_multi_commit.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project_multi_commit.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/urls.py b/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/wsgi.py b/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/wsgi.py deleted file mode 100644 index 6741b31..0000000 --- a/tests/test_project_fixtures/test_project_multi_commit/test_project_multi_commit/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_add_not_null_column.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_project_rename_column/.gitignore b/tests/test_project_fixtures/test_project_rename_column/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_project_rename_column/manage.py b/tests/test_project_fixtures/test_project_rename_column/manage.py deleted file mode 100644 index 184f757..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_rename_column.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_project_rename_column/test_app/__init__.py b/tests/test_project_fixtures/test_project_rename_column/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_rename_column/test_app/admin.py b/tests/test_project_fixtures/test_project_rename_column/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_project_rename_column/test_app/apps.py b/tests/test_project_fixtures/test_project_rename_column/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_project_rename_column/test_app/migrations/0001_create_table.py b/tests/test_project_fixtures/test_project_rename_column/test_app/migrations/0001_create_table.py deleted file mode 100644 index 90a71dc..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_app/migrations/0001_create_table.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:12 -from __future__ import unicode_literals - -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)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_rename_column/test_app/migrations/0002_rename_column.py b/tests/test_project_fixtures/test_project_rename_column/test_app/migrations/0002_rename_column.py deleted file mode 100644 index e998757..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_app/migrations/0002_rename_column.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:12 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0001_create_table'), - ] - - operations = [ - migrations.RenameField( - model_name='a', - old_name='null_field', - new_name='new_name_field', - ), - ] diff --git a/tests/test_project_fixtures/test_project_rename_column/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_project_rename_column/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_rename_column/test_app/models.py b/tests/test_project_fixtures/test_project_rename_column/test_app/models.py deleted file mode 100644 index aff774d..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_app/models.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.db import models - -class A(models.Model): - new_name_field = models.IntegerField(null=True) diff --git a/tests/test_project_fixtures/test_project_rename_column/test_app/tests.py b/tests/test_project_fixtures/test_project_rename_column/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_project_rename_column/test_app/views.py b/tests/test_project_fixtures/test_project_rename_column/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/__init__.py b/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/settings.py b/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/settings.py deleted file mode 100644 index 126901b..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/settings.py +++ /dev/null @@ -1,130 +0,0 @@ -""" -Django settings for test_project_rename_column project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project_rename_column.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project_rename_column.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/urls.py b/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/wsgi.py b/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/wsgi.py deleted file mode 100644 index 6741b31..0000000 --- a/tests/test_project_fixtures/test_project_rename_column/test_project_rename_column/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_add_not_null_column.settings") - -application = get_wsgi_application() diff --git a/tests/test_project_fixtures/test_project_rename_table/.gitignore b/tests/test_project_fixtures/test_project_rename_table/.gitignore deleted file mode 100644 index 63973d0..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc -__pycache__/ -*sqlite3 diff --git a/tests/test_project_fixtures/test_project_rename_table/manage.py b/tests/test_project_fixtures/test_project_rename_table/manage.py deleted file mode 100644 index dee3fd6..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_rename_table.settings") - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - raise - execute_from_command_line(sys.argv) diff --git a/tests/test_project_fixtures/test_project_rename_table/test_app/__init__.py b/tests/test_project_fixtures/test_project_rename_table/test_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_rename_table/test_app/admin.py b/tests/test_project_fixtures/test_project_rename_table/test_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/tests/test_project_fixtures/test_project_rename_table/test_app/apps.py b/tests/test_project_fixtures/test_project_rename_table/test_app/apps.py deleted file mode 100644 index fc04070..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class TestAppConfig(AppConfig): - name = 'test_app' diff --git a/tests/test_project_fixtures/test_project_rename_table/test_app/migrations/0001_create_table.py b/tests/test_project_fixtures/test_project_rename_table/test_app/migrations/0001_create_table.py deleted file mode 100644 index d847af6..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_app/migrations/0001_create_table.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:15 -from __future__ import unicode_literals - -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)), - ], - ), - ] diff --git a/tests/test_project_fixtures/test_project_rename_table/test_app/migrations/0002_rename_table.py b/tests/test_project_fixtures/test_project_rename_table/test_app/migrations/0002_rename_table.py deleted file mode 100644 index f75ea5c..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_app/migrations/0002_rename_table.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.6 on 2017-10-25 14:15 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('test_app', '0001_create_table'), - ] - - operations = [ - migrations.RenameModel( - old_name='A', - new_name='B', - ), - ] diff --git a/tests/test_project_fixtures/test_project_rename_table/test_app/migrations/__init__.py b/tests/test_project_fixtures/test_project_rename_table/test_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_rename_table/test_app/models.py b/tests/test_project_fixtures/test_project_rename_table/test_app/models.py deleted file mode 100644 index 2633c55..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_app/models.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.db import models - -class B(models.Model): - null_field = models.IntegerField(null=True) diff --git a/tests/test_project_fixtures/test_project_rename_table/test_app/tests.py b/tests/test_project_fixtures/test_project_rename_table/test_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/tests/test_project_fixtures/test_project_rename_table/test_app/views.py b/tests/test_project_fixtures/test_project_rename_table/test_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/__init__.py b/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/settings.py b/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/settings.py deleted file mode 100644 index 79a5ee2..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/settings.py +++ /dev/null @@ -1,130 +0,0 @@ -""" -Django settings for test_project_rename_table project. - -Generated by 'django-admin startproject' using Django 1.11.6. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/1.11/ref/settings/ -""" - -import os - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) -BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'gtb+mohs%gf0+#fr89vw7e&#edmv=q8!iv+n&j_soawk$tkj3^' - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] - - -# Application definition - -INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.messages', - 'django.contrib.staticfiles', - 'test_app' -] - -MIDDLEWARE = [ - 'django.middleware.security.SecurityMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - 'django.middleware.clickjacking.XFrameOptionsMiddleware', -] - -ROOT_URLCONF = 'test_project_rename_table.urls' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], - 'APP_DIRS': True, - 'OPTIONS': { - 'context_processors': [ - 'django.template.context_processors.debug', - 'django.template.context_processors.request', - 'django.contrib.auth.context_processors.auth', - 'django.contrib.messages.context_processors.messages', - ], - }, - }, -] - -WSGI_APPLICATION = 'test_project_rename_table.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/1.11/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - }, - 'mysql': { - 'ENGINE': 'django_fake_database_backends.backends.mysql', - }, - 'sqlite': { - 'ENGINE': 'django_fake_database_backends.backends.sqlite3', - }, - 'postgresql': { - 'ENGINE': 'django_fake_database_backends.backends.postgresql', - }, -} - - -# Password validation -# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators - -AUTH_PASSWORD_VALIDATORS = [ - { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', - }, - { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', - }, -] - - -# Internationalization -# https://docs.djangoproject.com/en/1.11/topics/i18n/ - -LANGUAGE_CODE = 'en-us' - -TIME_ZONE = 'UTC' - -USE_I18N = True - -USE_L10N = True - -USE_TZ = True - - -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.11/howto/static-files/ - -STATIC_URL = '/static/' diff --git a/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/urls.py b/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/urls.py deleted file mode 100644 index 735de5d..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/urls.py +++ /dev/null @@ -1,21 +0,0 @@ -"""linter_test_project URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.11/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.conf.urls import url, include - 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) -""" -from django.conf.urls import url -from django.contrib import admin - -urlpatterns = [ - url(r'^admin/', admin.site.urls), -] diff --git a/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/wsgi.py b/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/wsgi.py deleted file mode 100644 index 96d3e60..0000000 --- a/tests/test_project_fixtures/test_project_rename_table/test_project_rename_table/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for linter_test_project project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project_rename_table.settings") - -application = get_wsgi_application()