Subversion Repositories SmartDukaan

Rev

Rev 1891 | Rev 7677 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1891 Rev 3005
Line 4... Line 4...
4
@author: rajveer
4
@author: rajveer
5
'''
5
'''
6
 
6
 
7
from shop2020.clients.HelperClient import HelperClient
7
from shop2020.clients.HelperClient import HelperClient
8
from shop2020.thriftpy.utils.ttypes import *
8
from shop2020.thriftpy.utils.ttypes import *
9
from shop2020.helpers.impl.DataAccessor import get_reports
-
 
10
 
9
 
11
 
-
 
12
"""
-
 
13
helper_client = HelperClient()
10
helper_client = HelperClient()
14
 
-
 
15
helper_client.__start__()
-
 
16
 
-
 
17
client = helper_client.get_client()
11
client = helper_client.get_client()
18
 
12
 
-
 
13
"""
19
mail = Mail()
14
mail = Mail()
20
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
15
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
21
mail.subject = "Test mail subject"
16
mail.subject = "Test mail subject"
22
mail.data = "Mail text"
17
mail.data = "Mail text"
23
mail.password = "dummy"
18
mail.password = "dummy"
24
mail.sender="rajveer.singh@shop2020.in"
19
mail.sender="rajveer.singh@shop2020.in"
25
client.sendMail(mail)
20
client.sendMail(mail)
26
"""
21
"""
27
 
22
 
28
client = HelperClient().get_client()
23
def test_get_reports():
29
reports = client.getReports(2)
24
    reports = client.getReports(2)
30
for r in reports:
25
    for r in reports:
31
    print r.description
26
        print r.description
32
    
27
    
-
 
28
def test_email_archival():
-
 
29
    client.markEmailAsSent(29)
-
 
30
 
-
 
31
test_get_reports()
-
 
32
test_email_archival()
33
33