Skip to content

Commit

Permalink
Bug 1311967 - Mark test_no_missing_migrations as requiring DB access
Browse files Browse the repository at this point in the history
In Django 1.10 the makemigrations command now requires the database
(see https://code.djangoproject.com/ticket/25850), so this test must
now have the `django_db` annotation.
  • Loading branch information
Ed Morley committed Jan 6, 2017
1 parent 6acee29 commit 9766bbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_setup.py
Expand Up @@ -47,6 +47,7 @@ def test_mysqlclient_tls_enforced():
assert "SSL connection error" in str(e.value)


@pytest.mark.django_db
def test_no_missing_migrations():
"""Check no model changes have been made since the last `./manage.py makemigrations`."""
with pytest.raises(SystemExit) as e:
Expand Down

0 comments on commit 9766bbd

Please sign in to comment.