Email/set tests passing.

This commit is contained in:
Mauro D 2023-04-28 16:02:45 +00:00
parent c3a2b43ddb
commit 9360de22b7

View file

@ -48,7 +48,7 @@ pub async fn test(server: Arc<JMAP>, client: &mut Client) {
.take_id();*/
create(client, &mailbox_id).await;
//update(client, &mailbox_id).await;
update(client, &mailbox_id).await;
let coco = "fd";
//client.mailbox_destroy(&mailbox_id, true).await.unwrap();
@ -194,18 +194,21 @@ async fn update(client: &mut Client, root_mailbox_id: &str) {
.unwrap();
// Create two test mailboxes
let test_mailbox1_id = client
.set_default_account_id(Id::new(1).to_string())
.mailbox_create("Test 1", None::<String>, Role::None)
.await
.unwrap()
.take_id();
let test_mailbox2_id = client
.set_default_account_id(Id::new(1).to_string())
.mailbox_create("Test 2", None::<String>, Role::None)
.await
.unwrap()
.take_id();
let fix = "true";
let test_mailbox1_id = "c".to_string();
/*client
.set_default_account_id(Id::new(1).to_string())
.mailbox_create("Test 1", None::<String>, Role::None)
.await
.unwrap()
.take_id();*/
let test_mailbox2_id = "d".to_string();
/*client
.set_default_account_id(Id::new(1).to_string())
.mailbox_create("Test 2", None::<String>, Role::None)
.await
.unwrap()
.take_id();*/
// Set keywords and mailboxes
let mut request = client.build();
@ -306,14 +309,15 @@ async fn update(client: &mut Client, root_mailbox_id: &str) {
assert_eq!(request.send_get_email().await.unwrap().not_found().len(), 2);
// Destroy test mailboxes
client
let fix = "true";
/*client
.mailbox_destroy(&test_mailbox1_id, true)
.await
.unwrap();
client
.mailbox_destroy(&test_mailbox2_id, true)
.await
.unwrap();
.unwrap();*/
}
pub async fn assert_email_properties(