From f46e4dc4bf7a1af4416f474bceab4253dab19ad3 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Thu, 19 Aug 2021 14:13:20 +0200
Subject: [PATCH] unused variable + code indentation

---
 .pylintrc                                    | 1 +
 smash/web/tests/models/test_mail_template.py | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.pylintrc b/.pylintrc
index e498f1a1..c61a6a9b 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -50,6 +50,7 @@ disable=
     W0603, # global-statement
     W1308, # duplicate-string-formatting-argument
     W0102, # dangerous-default-value
+    C0200, # consider-using-enumerate
 
 [FORMAT]
 # Maximum number of characters on a single line.
diff --git a/smash/web/tests/models/test_mail_template.py b/smash/web/tests/models/test_mail_template.py
index 652a56d8..4bed1254 100644
--- a/smash/web/tests/models/test_mail_template.py
+++ b/smash/web/tests/models/test_mail_template.py
@@ -110,8 +110,8 @@ class MailTemplateModelTests(TestCase):
 
     def test_apply_subject_with_non_existing_custom_field(self):
         subject = create_study_subject()
-        field = CustomStudySubjectField.objects.create(name="Diagnosis", type=CUSTOM_FIELD_TYPE_TEXT,
-                                                       study=get_test_study(), unique=True)
+        CustomStudySubjectField.objects.create(name="Diagnosis", type=CUSTOM_FIELD_TYPE_TEXT,
+                                               study=get_test_study(), unique=True)
         doc = self.create_doc_for_subject(subject, self.french_language, MAIL_TEMPLATE_CONTEXT_SUBJECT)
         worker_name = str(self.user.worker)
 
@@ -288,4 +288,3 @@ class MailTemplateModelTests(TestCase):
         worker_name = str(self.user.worker)
         location = appointment.location.name
         self.check_doc_contains(doc, [worker_name, location])
-
-- 
GitLab