Skip to content

Commit 5230078

Browse files
committed
Remove the new_krate_with_dependency test
This tests the same functionality as the new_krate_non_canon_crate_name_dependencies test, but that test has an additional detail that tests for a specific regression so we'll keep that one.
1 parent 7d39ce0 commit 5230078

File tree

2 files changed

+0
-104
lines changed

2 files changed

+0
-104
lines changed

src/tests/http-data/krate_new_krate_with_dependency

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/tests/krate.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -598,37 +598,6 @@ fn new_krate_weird_version() {
598598
assert_eq!(json.krate.max_version, "0.0.0-pre");
599599
}
600600

601-
#[test]
602-
fn new_krate_with_dependency() {
603-
let (app, _, user, token) = TestApp::with_proxy().with_token();
604-
605-
app.db(|conn| {
606-
// Insert a crate directly into the database so that new_dep can depend on it
607-
CrateBuilder::new("foo_dep", user.as_model().id).expect_build(&conn);
608-
});
609-
610-
let dependency = DependencyBuilder::new("foo_dep");
611-
612-
let crate_to_publish = PublishBuilder::new("new_dep")
613-
.version("1.0.0")
614-
.dependency(dependency);
615-
token.publish(crate_to_publish).good();
616-
617-
let remote_contents = clone_remote_repo();
618-
let path = remote_contents.path().join("ne/w_/new_dep");
619-
assert!(path.exists());
620-
let mut contents = String::new();
621-
File::open(&path)
622-
.unwrap()
623-
.read_to_string(&mut contents)
624-
.unwrap();
625-
let p: git::Crate = serde_json::from_str(&contents).unwrap();
626-
assert_eq!(p.name, "new_dep");
627-
assert_eq!(p.vers, "1.0.0");
628-
assert_eq!(p.deps.len(), 1);
629-
assert_eq!(p.deps[0].name, "foo_dep");
630-
}
631-
632601
#[test]
633602
fn new_with_renamed_dependency() {
634603
let (app, _, user, token) = TestApp::with_proxy().with_token();

0 commit comments

Comments
 (0)