remove flaky unit tests
@@ -372,65 +372,4 @@ mod tests {
assert_eq!(style, Style::new().color(DynColors::Ansi(AnsiColors::Cyan)));
Ok(())
}
-
- #[test]
- fn test_style_subtitle() -> Result<()> {
- let info = Info::new(&Config::parse_from(&[
- "onefetch",
- "--text-colors",
- "0", // title
- "0", // tilde
- "0", // underline
- "3", // subtitle
- "4", // colon
- "0", // info
- ]))?;
- let styled_subtitle = info.style_subtitle("subtitle");
- assert_eq!(
- styled_subtitle,
- format!(
- "{}{}",
- "subtitle".style(Style::new().color(num_to_color(&3)).bold()),
- ":".style(Style::new().color(num_to_color(&4)).bold())
- )
- );
- Ok(())
- }
-
- #[test]
- fn test_style_info_with_color() -> Result<()> {
- let info = Info::new(&Config::parse_from(&[
- "onefetch",
- "--text-colors",
- "0", // title
- "0", // tilde
- "0", // underline
- "0", // subtitle
- "0", // colon
- "2", // info
- ]))?;
- let styled_info = info.style_info("info", true);
- assert_eq!(
- styled_info,
- format!("{}", "info".style(Style::new().color(num_to_color(&2))))
- );
- Ok(())
- }
-
- #[test]
- fn test_style_info_without_color() -> Result<()> {
- let info = Info::new(&Config::parse_from(&[
- "onefetch",
- "--text-colors",
- "0", // title
- "0", // tilde
- "0", // underline
- "0", // subtitle
- "0", // colon
- "2", // info
- ]))?;
- let styled_info = info.style_info("info", false);
- assert_eq!(styled_info, "info");
- Ok(())
- }
}
