Skip to content

Commit

Permalink
Remove dead code from tests (#4856)
Browse files Browse the repository at this point in the history
Looks like an oversight
  • Loading branch information
konstin authored Jul 7, 2024
1 parent 2c214e7 commit 91e4d88
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions crates/uv/tests/pip_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4987,14 +4987,9 @@ fn already_installed_remote_url() {

/// Sync using `--find-links` with a local directory.
#[test]
fn find_links() -> Result<()> {
fn find_links() {
let context = TestContext::new("3.12");

let requirements_txt = context.temp_dir.child("requirements.txt");
requirements_txt.write_str(indoc! {r"
tqdm
"})?;

uv_snapshot!(context.filters(), context.pip_install()
.arg("tqdm")
.arg("--find-links")
Expand All @@ -5010,20 +5005,13 @@ fn find_links() -> Result<()> {
+ tqdm==1000.0.0
"###
);

Ok(())
}

/// Sync using `--find-links` with a local directory, with wheels disabled.
#[test]
fn find_links_no_binary() -> Result<()> {
fn find_links_no_binary() {
let context = TestContext::new("3.12");

let requirements_txt = context.temp_dir.child("requirements.txt");
requirements_txt.write_str(indoc! {r"
tqdm
"})?;

uv_snapshot!(context.filters(), context.pip_install()
.arg("tqdm")
.arg("--no-binary")
Expand All @@ -5041,8 +5029,6 @@ fn find_links_no_binary() -> Result<()> {
+ tqdm==999.0.0
"###
);

Ok(())
}

/// Provide valid hashes for all dependencies with `--require-hashes`.
Expand Down

0 comments on commit 91e4d88

Please sign in to comment.