Subversion Repositories SmartDukaan

Rev

Rev 23689 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23687 govind 1
'''
2
Created on 22/05/2018
3
 
4
@author: Govind
5
'''
6
 
7
 
23690 govind 8
from shop2020.clients.TransactionClient import TransactionClient
9
 
23687 govind 10
from shop2020.thriftpy.utils.ttypes import *
11
 
12
 
13
 
23690 govind 14
order_client=TransactionClient()
15
client=order_client.get_client()
23687 govind 16
 
23688 govind 17
 
23687 govind 18
"""
19
mail = Mail()
20
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
21
mail.subject = "Test mail subject"
22
mail.data = "Mail text"
23
mail.password = "dummy"
24
mail.sender="rajveer.singh@shop2020.in"
25
client.sendMail(mail)
26
"""
27
 
28
#def test_get_reports():
29
#    reports = client.getReports(2)
30
#   for r in reports:
31
 #       print r.description
32
 
33
#def test_email_archival():
34
 #   client.markEmailAsSent(29)
35
 
36
 
37
 
38
#test_get_reports()
39
#test_email_archival()
40
 
41
if __name__ == '__main__':
23690 govind 42
    print client.isAlive()