modify test

This commit is contained in:
l00556901 2021-12-02 10:42:52 +08:00
parent 64c69dffc5
commit cf621fdc94

View File

@ -185,6 +185,32 @@ See [..]
validate_upload_foo();
}
#[cargo_test]
fn simple_with_index() {
registry::init();
let p = project()
.file(
"Cargo.toml",
r#"
[project]
name = "foo"
version = "0.0.1"
authors = []
license = "MIT"
description = "foo"
"#,
)
.file("src/main.rs", "fn main() {}")
.build();
p.cargo("publish --no-verify --token sekrit --index")
.arg(registry_url().to_string())
.run();
validate_upload_foo();
}
#[cargo_test]
fn git_deps() {
registry::init();