Skip to content
Snippets Groups Projects
Commit 1bb726f1 authored by dominip89's avatar dominip89
Browse files

Merge branch 'master-linter-emergency-fix' into 'master'

Fix Linter

See merge request swp-unisport/team-warumkeinrust/unisport-o-mat!53
parents 24b8ff76 24549c40
No related branches found
No related tags found
No related merge requests found
......@@ -10,4 +10,5 @@ disable=line-too-long,
arguments-differ,
invalid-name,
no-else-raise,
arguments-renamed,
......@@ -133,11 +133,12 @@ class Command(BaseCommand):
),
("Mache vor der nächsten Frage 3 Jumping Jacks", "Do Three Jumping Jacks."),
]
image = SimpleUploadedFile(
name="test_image.png",
content=open("quiz/fixtures/images/test_image.png", "rb").read(),
content_type="image/png",
)
with open("quiz/fixtures/images/test_image.png", "rb") as read_file:
image = SimpleUploadedFile(
name="test_image.png",
content=read_file.read(),
content_type="image/png",
)
for text in calls_to_move:
activate("de")
......@@ -161,11 +162,13 @@ class Command(BaseCommand):
"That proper training prevents heart disease?",
),
]
image = SimpleUploadedFile(
name="logo.png",
content=open("quiz/fixtures/images/logo.png", "rb").read(),
content_type="image/png",
)
with open("quiz/fixtures/images/logo.png", "rb") as read_file:
image = SimpleUploadedFile(
name="logo.png",
content=read_file.read(),
content_type="image/png",
)
for text in knowledge_snacks:
activate("de")
k_s = KnowledgeSnack(text=text[0], image=image)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment