notify: fix tests if not all features are enabled

Some tests are now disabled if not all required features are enabled.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2023-07-24 14:31:25 +02:00 committed by Wolfgang Bumiller
parent f6fa851d1f
commit a1cbaea766

View File

@ -226,12 +226,13 @@ fn get_referenced_entities(config: &Config, entity: &str) -> HashSet<String> {
mod test_helpers {
use crate::Config;
#[allow(unused)]
pub fn empty_config() -> Config {
Config::new("", "").unwrap()
}
}
#[cfg(test)]
#[cfg(all(test, gotify, sendmail))]
mod tests {
use super::*;
use crate::endpoints::gotify::{GotifyConfig, GotifyPrivateConfig};