Remove test_generate_json_schema (#17763)

We don't update the schema with every PR anymore.
This commit is contained in:
konsti
2026-01-30 14:57:22 +01:00
committed by GitHub
parent 63808421f5
commit e2ef6216a7
-28
View File
@@ -134,31 +134,3 @@ fn generate() -> Result<String> {
Ok(output)
}
#[cfg(test)]
mod tests {
use std::env;
use anyhow::Result;
use uv_static::EnvVars;
use crate::generate_all::Mode;
use super::{Args, main};
#[test]
fn test_generate_json_schema() -> Result<()> {
// Skip this test in CI to avoid redundancy with the dedicated CI job
if env::var_os(EnvVars::CI).is_some() {
return Ok(());
}
let mode = if env::var(EnvVars::UV_UPDATE_SCHEMA).as_deref() == Ok("1") {
Mode::Write
} else {
Mode::Check
};
main(&Args { mode })
}
}