aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-07-07 11:58:17 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-07-07 11:58:17 +0530
commit12dbe58a5098f254c63bb4b2603ed5cb0a0fff81 (patch)
tree866ea6217f4c067863f024db395f9887d15bea98 /tests
parent876eaef701d2fdd124ca0eee8a4a00f811416bd3 (diff)
Fixing DeepSource Issue (Re-defined variable from outer scope
PYL-W0621 )
Diffstat (limited to 'tests')
-rw-r--r--tests/backendTest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/backendTest.py b/tests/backendTest.py
index 31b3a99..00151b1 100644
--- a/tests/backendTest.py
+++ b/tests/backendTest.py
@@ -9,7 +9,7 @@ mycursor.execute(sql_select_Query)
records = mycursor.fetchall()
-def email(zi):
+def email(compressedFile):
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
@@ -27,7 +27,7 @@ def email(zi):
msg.attach(MIMEText(body, 'plain'))
filename = "Curie_Web_Results_Job_ID_" + str(jobID) + ".zip"
- attachment = open((str(zi) + ".zip"), "rb")
+ attachment = open((str(compressedFile) + ".zip"), "rb")
p = MIMEBase('application', 'octet-stream')
p.set_payload((attachment).read())
encoders.encode_base64(p)