File: //home/arjun/projects/buyercall/buyercall/tests/email/test_endpoints.py
from urllib import response
from buyercall.blueprints.email.utils.parse_outbound_mail import OutboundMailParser
from buyercall.blueprints.email.utils.parse_inbound_mail import InboundMailParser
class TestEmailParsing:
def test_send_mail_parse(self, mock_send_mail_data):
response = OutboundMailParser().parse(mock_send_mail_data)
print("Send : ", response)
assert response != {}
def test_delivery_mail_parse(self, mock_delivery_mail_data):
response = OutboundMailParser().parse(mock_delivery_mail_data)
print("Delivered : ", response)
assert response != {}
def test_receive_mail_parse(self, mock_receive_mail_data):
response = InboundMailParser().parse(mock_receive_mail_data)
print("Received : ", response)
assert response != {}