diff --git a/plotly/src/plot.rs b/plotly/src/plot.rs index fd0b1cd..4132409 100644 --- a/plotly/src/plot.rs +++ b/plotly/src/plot.rs @@ -585,6 +585,7 @@ impl PartialEq for Plot { mod tests { use std::path::PathBuf; + use base64::{engine::general_purpose, Engine as _}; use serde_json::{json, to_value}; use super::*; @@ -748,7 +749,7 @@ mod tests { assert!(!dst.exists()); } - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] #[cfg(feature = "kaleido")] fn test_save_to_png() { @@ -760,7 +761,7 @@ mod tests { assert!(!dst.exists()); } - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] #[cfg(feature = "kaleido")] fn test_save_to_jpeg() { @@ -772,7 +773,7 @@ mod tests { assert!(!dst.exists()); } - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] #[cfg(feature = "kaleido")] fn test_save_to_svg() { @@ -796,7 +797,7 @@ mod tests { assert!(!dst.exists()); } - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] #[cfg(feature = "kaleido")] fn test_save_to_pdf() { @@ -820,12 +821,10 @@ mod tests { assert!(!dst.exists()); } - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] #[cfg(feature = "kaleido")] fn test_image_to_base64() { - use base64::engine::general_purpose; - use base64::Engine; let plot = create_test_plot(); let image_base64 = plot.to_base64(ImageFormat::PNG, 200, 150, 1.0); @@ -850,7 +849,7 @@ mod tests { assert!(image_base64.is_empty()); } - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] #[cfg(feature = "kaleido")] fn test_image_to_svg_string() { diff --git a/plotly_kaleido/src/lib.rs b/plotly_kaleido/src/lib.rs index cb0c17f..841a8a2 100644 --- a/plotly_kaleido/src/lib.rs +++ b/plotly_kaleido/src/lib.rs @@ -297,7 +297,7 @@ mod tests { } // This seems to fail unpredictably on MacOs. - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] fn test_save_png() { let test_plot = create_test_plot(); @@ -309,7 +309,7 @@ mod tests { } // This seems to fail unpredictably on MacOs. - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] fn test_save_jpeg() { let test_plot = create_test_plot(); @@ -321,7 +321,7 @@ mod tests { } // This seems to fail unpredictably on MacOs. - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] fn test_save_webp() { let test_plot = create_test_plot(); @@ -333,7 +333,7 @@ mod tests { } // This seems to fail unpredictably on MacOs. - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] fn test_save_svg() { let test_plot = create_test_plot(); @@ -345,7 +345,7 @@ mod tests { } // This seems to fail unpredictably on MacOs. - #[cfg(target_os = "linux")] + // #[cfg(target_os = "linux")] #[test] fn test_save_pdf() { let test_plot = create_test_plot();