From f9a183e084247c981ee6e16095e7ac74de92d3b0 Mon Sep 17 00:00:00 2001 From: quambene Date: Fri, 3 May 2024 00:14:43 +0200 Subject: [PATCH] Fix test --- tests/cmd/test_send.rs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/tests/cmd/test_send.rs b/tests/cmd/test_send.rs index c55e219..060d0fc 100644 --- a/tests/cmd/test_send.rs +++ b/tests/cmd/test_send.rs @@ -42,8 +42,13 @@ fn test_send_smtp() { "smtp", ]); cmd.assert().success().stdout( - str::contains("Reading csv file './receiver.csv' ...") - .and(str::contains("Display csv file:").and(str::contains("Display emails:"))), + str::contains("Reading message file './message.yaml' ...") + .and(str::contains("Display message file:")) + .and(str::contains("Display email:")) + .and(str::contains("Sending email to 1 receiver ...")) + .and(str::contains("Email sent")) + .and(str::contains("Archiving")) + .and(str::contains("Dry run:").not()), ); assert!(temp_path.join("my-sent-emails").exists()); @@ -88,8 +93,13 @@ fn test_send_aws() { "aws", ]); cmd.assert().success().stdout( - str::contains("Reading csv file './receiver.csv' ...") - .and(str::contains("Display csv file:").and(str::contains("Display email:"))), + str::contains("Reading message file './message.yaml' ...") + .and(str::contains("Display message file:")) + .and(str::contains("Display email:")) + .and(str::contains("Sending email to 1 receiver ...")) + .and(str::contains("Email sent")) + .and(str::contains("Archiving")) + .and(str::contains("Dry run:").not()), ); assert!(temp_path.join("my-sent-emails").exists());