fix: tests

This commit is contained in:
Rucha Mahabal 2019-10-11 03:33:06 +05:30
parent 8b77a3faee
commit 37dec37f6d
2 changed files with 1 additions and 2 deletions

View file

@ -22,7 +22,7 @@ class EventProducer(Document):
def create_event_consumer(self):
'''register event consumer on the producer site'''
producer_site = FrappeClient(self.producer_url, verify=False)
producer_site = FrappeClient(self.producer_url)
subscribed_doctypes = []
for entry in self.event_configuration:
if entry.has_mapping:

View file

@ -21,7 +21,6 @@ class FrappeException(Exception):
class FrappeClient(object):
def __init__(self, url, username=None, password=None, verify=True, api_key=None, api_secret=None, frappe_authorization_source = None):
self.headers = dict(Accept='application/json')
self.headers.update({'Content-type': 'application/json'})
self.verify = verify
self.session = requests.session()
self.url = url