Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b6eb24ba
authored
Aug 06, 2019
by
Bodor Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flake8 errors
parent
a2268ae3
Pipeline
#806
passed with stage
in 1 minute 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
recircle/template/tests/test_models.py
+5
-3
No files found.
recircle/template/tests/test_models.py
View file @
b6eb24ba
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment