Subversion Repositories SmartDukaan

Rev

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

Rev 23671 Rev 23680
Line 2... Line 2...
2
Created on 22/05/2018
2
Created on 22/05/2018
3
 
3
 
4
@author: Govind
4
@author: Govind
5
'''
5
'''
6
 
6
 
7
from shop2020.config.client.ConfigClient import  ConfigClient
7
from shop2020.config.client.ConfigClient import ConfigClient
8
from shop2020.thriftpy.utils.ttypes import *
8
from shop2020.thriftpy.utils.ttypes import *
9
 
9
 
10
config_client = ConfigClient()
10
config_client=ConfigClient()
11
client = config_client.get_client()
11
client=config_client.get_property("live")
12
 
12
 
13
"""
13
"""
14
mail = Mail()
14
mail = Mail()
15
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
15
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
16
mail.subject = "Test mail subject"
16
mail.subject = "Test mail subject"
Line 26... Line 26...
26
 #       print r.description
26
 #       print r.description
27
    
27
    
28
#def test_email_archival():
28
#def test_email_archival():
29
 #   client.markEmailAsSent(29)
29
 #   client.markEmailAsSent(29)
30
    
30
    
31
def testAlive():
31
#def testAlive():
32
    return client.isAlive()
32
 #   return client.isAlive()
33
 
33
 
34
#test_get_reports()
34
#test_get_reports()
35
#test_email_archival()
35
#test_email_archival()
36
 
36
 
37
if __name__ == '__main__':
37
if __name__ == '__main__':
38
    print client.isAlive()
38
    print config_client.get_property("live")