fix: tests
This commit is contained in:
parent
8b77a3faee
commit
37dec37f6d
2 changed files with 1 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue