tests: skip data migrations on django 2.2

This commit is contained in:
Frédéric Péters 2020-04-12 12:02:50 +02:00
parent 09fd5ec8d8
commit 9ffcf645da
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import uuid
import pytest
import django
from django.db import connection
from django.db.migrations.executor import MigrationExecutor
@ -9,6 +10,8 @@ pytestmark = pytest.mark.django_db
def test_subscription_sms_identifier_format_migration():
if django.VERSION >= (2, 0, 0):
pytest.skip('NotSupportedError')
executor = MigrationExecutor(connection)
app = 'corbo'
migrate_from = [(app, '0009_auto_20170120_1533')]