Commit b6eb24ba by Bodor Máté

Fix flake8 errors

parent a2268ae3
Pipeline #806 passed with stage
in 1 minute 22 seconds
from django.test import TestCase
from django.contrib.auth.models import User
from unittest.mock import Mock
from unittest.mock import patch
from template.models import ImageTemplate
......@@ -45,8 +44,11 @@ class TemplateModelsTest(TestCase):
'template.models.Image'
) as mock_image:
user = self.create_user()
image = Image.objects.create(name="test_image", description="test image description",
uploaded_by_user=False, remote_id="123456789", created_by=user)
image = Image.objects.create(name="test_image",
description="test image description",
uploaded_by_user=False,
remote_id="123456789",
created_by=user)
instance = self.create_instance()
description = "test template description"
name = "test_template"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment