drop bogus tests

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-14 11:36:52 +02:00
parent 02acce2dd8
commit 40e232f4d6

View File

@ -112,19 +112,6 @@ pub fn sendmail(
mod test { mod test {
use crate::tools::email::sendmail; use crate::tools::email::sendmail;
#[test]
fn send_email_to_root_localhost() {
let result = sendmail(
&["root@localhost"],
"Subject1",
Some("TEXT"),
Some("<b>HTML</b>"),
Some("root@localhost"),
Some("test1"),
);
assert!(result.is_ok());
}
#[test] #[test]
fn email_without_recipients() { fn email_without_recipients() {
let result = sendmail( let result = sendmail(
@ -137,17 +124,4 @@ mod test {
); );
assert!(result.is_err()); assert!(result.is_err());
} }
#[test]
fn email_with_non_existant_recipient() {
let result = sendmail(
&["some-nonexistant-proxmox-user"],
"Subject3",
None,
Some("<b>HTML</b>"),
None,
Some("test1"),
);
assert!(result.is_ok());
}
} }