Disable migration-checking test in Django 1.9+

This commit is contained in:
John Eskew
2018-01-05 16:36:09 -05:00
parent 6174e4deb6
commit cbf836227b

View File

@@ -5,6 +5,7 @@ import time
import unittest
import ddt
import django
import pytest
from django.contrib.auth.models import User
from django.core.management import call_command
@@ -234,6 +235,11 @@ class MigrationTests(TestCase):
make a migrationless release that'll require a separate migration
release afterwards, this test doesn't fail.
"""
# TODO: Remove Django 1.11 upgrade shim
# SHIM: Migrations are known to be needed when actually bumping the Django version number.
if django.VERSION >= (1, 9):
pytest.skip("Migrations are known to be needed for Django 1.9+!")
out = StringIO()
call_command('makemigrations', dry_run=True, verbosity=3, stdout=out)
output = out.getvalue()