diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-05-22 15:28:14 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-05-22 15:28:14 +0200 |
commit | 742beeeafbe46c7677d4af36006f0febd0edb6cd (patch) | |
tree | 038489bf3b7270cbe0a4dee1266dea0ba23ff949 /aero-proto | |
parent | 6ca7082197aa60288c3295387bfdf47d8adbed2d (diff) | |
download | aerogramme-742beeeafbe46c7677d4af36006f0febd0edb6cd.tar.gz aerogramme-742beeeafbe46c7677d4af36006f0febd0edb6cd.zip |
fix unit tests
Diffstat (limited to 'aero-proto')
-rw-r--r-- | aero-proto/src/imap/mailbox_view.rs | 14 | ||||
-rw-r--r-- | aero-proto/src/imap/mime_view.rs | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/aero-proto/src/imap/mailbox_view.rs b/aero-proto/src/imap/mailbox_view.rs index 0ef33d6..de81556 100644 --- a/aero-proto/src/imap/mailbox_view.rs +++ b/aero-proto/src/imap/mailbox_view.rs @@ -638,13 +638,13 @@ mod tests { use imap_codec::ResponseCodec; use std::fs; - use crate::cryptoblob; + use aero_user::cryptoblob; + use aero_collections::mail::mailbox::MailMeta; + use aero_collections::mail::query::QueryResult; + use aero_collections::unique_ident; + use crate::imap::index::MailIndex; - use crate::imap::mail_view::MailView; use crate::imap::mime_view; - use crate::mail::mailbox::MailMeta; - use crate::mail::query::QueryResult; - use crate::mail::unique_ident; #[test] fn mailview_body_ext() -> Result<()> { @@ -745,8 +745,8 @@ mod tests { for pref in prefixes.iter() { println!("{}", pref); - let txt = fs::read(format!("{}.eml", pref))?; - let oracle = fs::read(format!("{}.dovecot.body", pref))?; + let txt = fs::read(format!("../{}.eml", pref))?; + let oracle = fs::read(format!("../{}.dovecot.body", pref))?; let message = eml_codec::parse_message(&txt).unwrap().1; let test_repr = Response::Data(Data::Fetch { diff --git a/aero-proto/src/imap/mime_view.rs b/aero-proto/src/imap/mime_view.rs index 720f20a..fd0f4b0 100644 --- a/aero-proto/src/imap/mime_view.rs +++ b/aero-proto/src/imap/mime_view.rs @@ -33,7 +33,7 @@ pub enum BodySection<'a> { /// /// Example of message sections: /// -/// ``` +/// ```text /// HEADER ([RFC-2822] header of the message) /// TEXT ([RFC-2822] text body of the message) MULTIPART/MIXED /// 1 TEXT/PLAIN |