Skip to content

Commit cafec7e

Browse files
committed
Fix tests
1 parent 6cd32cd commit cafec7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_migrations.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from django.core.management import call_command
55
from django.db import models
66
from django.db.models.fields.files import ImageFieldFile
7+
from django.test.utils import isolate_apps
78

89
from pictures import migrations
910
from pictures.models import PictureField
@@ -117,6 +118,7 @@ class Meta:
117118
assert not migration.to_picture_field.called
118119

119120
@pytest.mark.django_db
121+
@isolate_apps
120122
def test_update_pictures(self, request, stub_worker, image_upload_file):
121123
class ToModel(models.Model):
122124
name = models.CharField(max_length=100)
@@ -172,6 +174,7 @@ class Meta:
172174
assert not luke.picture
173175

174176
@pytest.mark.django_db
177+
@isolate_apps
175178
def test_update_pictures__with_empty_pictures(
176179
self, request, stub_worker, image_upload_file
177180
):

0 commit comments

Comments
 (0)