Skip to content

Commit 4108162

Browse files
committed
메일 모듈 테스트 추가
1 parent e561016 commit 4108162

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎tests/test_mail.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import os
2+
3+
from bigpython.mail import EmailClient
4+
5+
def test_create_emailclient():
6+
mail = EmailClient('imap.naver.com', ssl=True)
7+
configfile = 'login.cfg'
8+
configfile = os.path.join(os.path.dirname(__file__), configfile)
9+
if not os.path.exists(configfile):
10+
raise FileNotFoundError('로그인 설정 파일 경로 문제: {}'.format(
11+
os.path.abspath(configfile)))
12+
mail.login(configfile=configfile)

0 commit comments

Comments
 (0)