mirror of
https://github.com/pinry/pinry.git
synced 2025-11-14 00:55:43 +01:00
Even though not used, import models for Factory Boy
This commit is contained in:
@@ -7,6 +7,9 @@ from django.test import TestCase
|
||||
import factory
|
||||
from taggit.models import Tag
|
||||
|
||||
from ..models import Pin, Image
|
||||
from ...users.models import User
|
||||
|
||||
|
||||
TEST_IMAGE_PATH = settings.SITE_ROOT + 'screenshot.png'
|
||||
|
||||
@@ -70,4 +73,4 @@ class PinFactoryTest(TestCase):
|
||||
|
||||
def test_empty_tags(self):
|
||||
PinFactory(tags=[])
|
||||
self.assertEqual(Tag.objects.count(), 0)
|
||||
self.assertEqual(Tag.objects.count(), 0)
|
||||
|
||||
Reference in New Issue
Block a user