From 625e479b4e0318ff4617e731857d29ee5365ca90 Mon Sep 17 00:00:00 2001 From: Wassilios Lytras Date: Tue, 19 Mar 2024 17:21:44 +0100 Subject: [PATCH] Adding Tests --- pyas2lib/tests/test_async.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyas2lib/tests/test_async.py b/pyas2lib/tests/test_async.py index 047e689..d266071 100644 --- a/pyas2lib/tests/test_async.py +++ b/pyas2lib/tests/test_async.py @@ -117,9 +117,15 @@ async def test_runtime_error(): # Parse the generated AS2 message as the partner raw_out_message = out_message.headers_str + b"\r\n" + out_message.content in_message = as2.Message() - _, _, mdn = in_message.parse( + _, _, mdn = await in_message.aparse( raw_out_message, find_org_cb=afind_org, find_partner_cb=afind_partner, find_message_cb=afind_duplicate_message, ) + + out_mdn = as2.Mdn() + _, _ = out_mdn.parse( + mdn.headers_str + b"\r\n" + mdn.content, + find_message_cb=afind_duplicate_message, + )