Commit 05ef858b by zhangjingdong

添加ascii

parent 79a09313
...@@ -2,9 +2,6 @@ ...@@ -2,9 +2,6 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="243b24f3-3df7-4c72-bf73-8de81d5ca458" name="Default" comment=""> <list default="true" id="243b24f3-3df7-4c72-bf73-8de81d5ca458" name="Default" comment="">
<change beforePath="$PROJECT_DIR$/.idea/bihe_interface_test.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/bihe_interface_test.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/碧合app/execute_automation_scripts.py" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/execute_automation_scripts.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/碧合app/execute_automation_scripts.py" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/execute_automation_scripts.py" afterDir="false" />
</list> </list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
...@@ -16,7 +13,7 @@ ...@@ -16,7 +13,7 @@
</component> </component>
<component name="CoverageDataManager"> <component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/bihe_interface_test$hebin.coverage" NAME="hebin Coverage Results" MODIFIED="1547019882690" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/碧合app" /> <SUITE FILE_PATH="coverage/bihe_interface_test$hebin.coverage" NAME="hebin Coverage Results" MODIFIED="1547019882690" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/碧合app" />
<SUITE FILE_PATH="coverage/bihe_interface_test$execute_automation_scripts.coverage" NAME="execute_automation_scripts Coverage Results" MODIFIED="1547601614816" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/碧合app" /> <SUITE FILE_PATH="coverage/bihe_interface_test$execute_automation_scripts.coverage" NAME="execute_automation_scripts Coverage Results" MODIFIED="1547602263469" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/碧合app" />
</component> </component>
<component name="FavoritesManager"> <component name="FavoritesManager">
<favorites_list name="bihe_interface_test" /> <favorites_list name="bihe_interface_test" />
...@@ -26,10 +23,10 @@ ...@@ -26,10 +23,10 @@
<file leaf-file-name="execute_automation_scripts.py" pinned="false" current-in-tab="true"> <file leaf-file-name="execute_automation_scripts.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py"> <entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1342"> <state relative-caret-position="381">
<caret line="118" lean-forward="true" selection-start-line="118" selection-end-line="118" /> <caret line="51" column="43" selection-start-line="51" selection-start-column="43" selection-end-line="51" selection-end-column="43" />
<folding> <folding>
<element signature="e#19#30#0" expanded="true" /> <element signature="e#26#37#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -367,7 +364,7 @@ ...@@ -367,7 +364,7 @@
<state relative-caret-position="162"> <state relative-caret-position="162">
<caret line="10" column="49" lean-forward="true" selection-start-line="10" selection-start-column="49" selection-end-line="10" selection-end-column="49" /> <caret line="10" column="49" lean-forward="true" selection-start-line="10" selection-start-column="49" selection-end-line="10" selection-end-column="49" />
<folding> <folding>
<element signature="e#19#30#0" expanded="true" /> <element signature="e#26#37#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -419,7 +416,7 @@ ...@@ -419,7 +416,7 @@
<state relative-caret-position="198"> <state relative-caret-position="198">
<caret line="11" column="49" lean-forward="true" selection-start-line="11" selection-start-column="49" selection-end-line="11" selection-end-column="49" /> <caret line="11" column="49" lean-forward="true" selection-start-line="11" selection-start-column="49" selection-end-line="11" selection-end-column="49" />
<folding> <folding>
<element signature="e#19#30#0" expanded="true" /> <element signature="e#26#37#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -435,7 +432,7 @@ ...@@ -435,7 +432,7 @@
<state relative-caret-position="270"> <state relative-caret-position="270">
<caret line="15" column="32" lean-forward="true" selection-start-line="15" selection-start-column="32" selection-end-line="15" selection-end-column="32" /> <caret line="15" column="32" lean-forward="true" selection-start-line="15" selection-start-column="32" selection-end-line="15" selection-end-column="32" />
<folding> <folding>
<element signature="e#19#30#0" expanded="true" /> <element signature="e#26#37#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -452,7 +449,7 @@ ...@@ -452,7 +449,7 @@
<state relative-caret-position="234"> <state relative-caret-position="234">
<caret line="14" column="25" selection-start-line="14" selection-start-column="25" selection-end-line="14" selection-end-column="25" /> <caret line="14" column="25" selection-start-line="14" selection-start-column="25" selection-end-line="14" selection-end-column="25" />
<folding> <folding>
<element signature="e#19#30#0" expanded="true" /> <element signature="e#26#37#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -474,7 +471,7 @@ ...@@ -474,7 +471,7 @@
<state relative-caret-position="144"> <state relative-caret-position="144">
<caret line="8" column="8" lean-forward="true" selection-start-line="8" selection-start-column="8" selection-end-line="8" selection-end-column="8" /> <caret line="8" column="8" lean-forward="true" selection-start-line="8" selection-start-column="8" selection-end-line="8" selection-end-column="8" />
<folding> <folding>
<element signature="e#19#30#0" expanded="true" /> <element signature="e#26#37#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -583,10 +580,10 @@ ...@@ -583,10 +580,10 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py"> <entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1342"> <state relative-caret-position="381">
<caret line="118" lean-forward="true" selection-start-line="118" selection-end-line="118" /> <caret line="51" column="43" selection-start-line="51" selection-start-column="43" selection-end-line="51" selection-end-column="43" />
<folding> <folding>
<element signature="e#19#30#0" expanded="true" /> <element signature="e#26#37#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
...@@ -7,7 +7,7 @@ import re ...@@ -7,7 +7,7 @@ import re
import smtplib import smtplib
from email.mime.text import MIMEText from email.mime.text import MIMEText
from email.header import Header from email.header import Header
import sys
class PostmanApi(): class PostmanApi():
...@@ -49,9 +49,9 @@ class PostmanApi(): ...@@ -49,9 +49,9 @@ class PostmanApi():
smtpObj.login(mail_user, mail_pass) smtpObj.login(mail_user, mail_pass)
smtpObj.sendmail(sender, receivers, message.as_string()) smtpObj.sendmail(sender, receivers, message.as_string())
smtpObj.quit() smtpObj.quit()
print(u"邮件发送成功") print(u"邮件发送成功").encode('ascii')
except smtplib.SMTPException: except smtplib.SMTPException:
print(u"Error: 无法发送邮件") print(u"Error: 无法发送邮件").encode('ascii')
return True return True
def post(self): def post(self):
......
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