nixpkgs/pkgs/by-name/sq/sqruff/disable-ui_with_dbt-test.diff
2025-06-02 08:38:36 +08:00

16 lines
464 B
Diff

diff --git a/crates/cli/tests/ui_with_dbt.rs b/crates/cli/tests/ui_with_dbt.rs
index d71a26c1..4d4ffe4f 100644
--- a/crates/cli/tests/ui_with_dbt.rs
+++ b/crates/cli/tests/ui_with_dbt.rs
@@ -3,6 +3,10 @@ use std::path::PathBuf;
use assert_cmd::Command;
use expect_test::expect_file;
+#[cfg(not(feature = "python"))]
+fn main() {}
+
+#[cfg(feature = "python")]
fn main() {
let sample_dbt_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()