diff --git a/deltachat-rpc-client/tests/test_something.py b/deltachat-rpc-client/tests/test_something.py index e588cc23a..422616268 100644 --- a/deltachat-rpc-client/tests/test_something.py +++ b/deltachat-rpc-client/tests/test_something.py @@ -5,12 +5,11 @@ import logging import os import socket import subprocess -import time from unittest.mock import MagicMock import pytest -from deltachat_rpc_client import Contact, EventType, Message, events +from deltachat_rpc_client import EventType, events from deltachat_rpc_client.const import DownloadState, MessageState from deltachat_rpc_client.pytestplugin import E2EE_INFO_MSGS from deltachat_rpc_client.rpc import JsonRpcError diff --git a/src/mimefactory/mimefactory_tests.rs b/src/mimefactory/mimefactory_tests.rs index bc39b6c3e..bd79d92c5 100644 --- a/src/mimefactory/mimefactory_tests.rs +++ b/src/mimefactory/mimefactory_tests.rs @@ -781,7 +781,7 @@ async fn test_hp_outer_headers() -> Result<()> { .await?; chat::send_text_msg(t, chat_id, "hi!".to_string()).await?; let sent_msg = t.pop_sent_msg().await; - let msg = MimeMessage::from_bytes(t, sent_msg.payload.as_bytes(), None).await?; + let msg = MimeMessage::from_bytes(t, sent_msg.payload.as_bytes()).await?; assert_eq!(msg.header_exists(HeaderDef::HpOuter), std_hp_composing); for hdr in ["Date", "From", "Message-ID"] { assert_eq!(