add webhook to docseal
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import base64
|
||||
import uuid
|
||||
from unittest.mock import MagicMock, patch
|
||||
from unittest.mock import patch
|
||||
|
||||
from docseal import create_submission_from_pdf
|
||||
|
||||
@@ -13,10 +13,12 @@ Seu certificado já está pronto e aguardando apenas a sua assinatura digital.
|
||||
"""
|
||||
|
||||
|
||||
def test_create_submission_from_pdf():
|
||||
r = MagicMock()
|
||||
def Response(*args, **kwargs):
|
||||
return type('Response', (), {'raise_for_status': object})
|
||||
|
||||
with patch('docseal.requests.post', r):
|
||||
|
||||
def test_create_submission_from_pdf():
|
||||
with patch('docseal.requests.post', Response):
|
||||
with open('tests/sample.pdf', 'rb') as f:
|
||||
file = base64.b64encode(f.read())
|
||||
create_submission_from_pdf(
|
||||
|
||||
Reference in New Issue
Block a user