Skip to content

Commit befb4da

Browse files
committed
Add git feature gate for tests
1 parent ad615e2 commit befb4da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/uv/tests/pip_install.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ fn install_no_index_version() {
721721

722722
/// Install a package from a public GitHub repository
723723
#[test]
724+
#[cfg(feature = "git")]
724725
fn install_git_public_https() {
725726
let context = TestContext::new("3.8");
726727

@@ -743,6 +744,7 @@ fn install_git_public_https() {
743744

744745
/// Install a package from a private GitHub repository using a PAT
745746
#[test]
747+
#[cfg(feature = "git")]
746748
fn install_git_private_https_pat() {
747749
let context = TestContext::new("3.8");
748750
let token = decode_token(READ_ONLY_GITHUB_TOKEN);
@@ -769,6 +771,7 @@ fn install_git_private_https_pat() {
769771

770772
/// Install a package from a private GitHub repository using a PAT
771773
#[test]
774+
#[cfg(feature = "git")]
772775
fn install_git_private_https_pat_and_username() {
773776
let context = TestContext::new("3.8");
774777
let token = decode_token(READ_ONLY_GITHUB_TOKEN);

0 commit comments

Comments
 (0)