forked from Proxmox/proxmox
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:
parent
f6fa851d1f
commit
a1cbaea766
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user