Skip to content

Commit 1ef930f

Browse files
authored
Remove some test cases.
1 parent 21afbcf commit 1ef930f

File tree

1 file changed

+0
-119
lines changed

1 file changed

+0
-119
lines changed

tests/testsuite/owner.rs

Lines changed: 0 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -14,125 +14,6 @@ fn setup(name: &str, content: Option<&str>) {
1414
}
1515
}
1616

17-
#[cargo_test]
18-
fn no_subcommand_return_help() {
19-
setup("foo", None);
20-
21-
let p = project()
22-
.file(
23-
"Cargo.toml",
24-
r#"
25-
[package]
26-
name = "foo"
27-
version = "0.0.1"
28-
authors = []
29-
license = "MIT"
30-
description = "foo"
31-
"#,
32-
)
33-
.file("src/main.rs", "fn main() {}")
34-
.build();
35-
36-
p.cargo("owner")
37-
.with_status(1)
38-
.with_stderr(
39-
"\
40-
Manage the owners of a crate on the registry
41-
42-
Usage: cargo owner add <OWNER_NAME> [CRATE_NAME] [OPTIONS]
43-
cargo owner remove <OWNER_NAME> [CRATE_NAME] [OPTIONS]
44-
cargo owner list [CRATE_NAME] [OPTIONS]
45-
46-
Commands:
47-
add Name of a user or team to invite as an owner
48-
remove Name of a user or team to remove as an owner
49-
list List owners of a crate
50-
51-
Options:
52-
-q, --quiet Do not print cargo log messages
53-
-v, --verbose... Use verbose output (-vv very verbose/build.rs output)
54-
--color <WHEN> Coloring: auto, always, never
55-
--frozen Require Cargo.lock and cache are up to date
56-
--index <INDEX> Registry index to modify owners for
57-
--locked Require Cargo.lock is up to date
58-
--token <TOKEN> API token to use when authenticating
59-
--offline Run without accessing the network
60-
--registry <REGISTRY> Registry to use
61-
--config <KEY=VALUE> Override a configuration value
62-
-Z <FLAG> Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
63-
-h, --help Print help
64-
65-
Run `cargo help owner` for more detailed information.",
66-
)
67-
.run();
68-
}
69-
70-
#[cargo_test]
71-
fn add_no_ownername_return_error() {
72-
setup("foo", None);
73-
74-
let p = project()
75-
.file(
76-
"Cargo.toml",
77-
r#"
78-
[package]
79-
name = "foo"
80-
version = "0.0.1"
81-
authors = []
82-
license = "MIT"
83-
description = "foo"
84-
"#,
85-
)
86-
.file("src/main.rs", "fn main() {}")
87-
.build();
88-
89-
p.cargo("owner add")
90-
.with_status(1)
91-
.with_stderr(
92-
"\
93-
error: the following required arguments were not provided:
94-
<OWNER_NAME>
95-
96-
Usage: cargo owner add <OWNER_NAME> [CRATE_NAME]
97-
98-
For more information, try '--help'.",
99-
)
100-
.run();
101-
}
102-
103-
#[cargo_test]
104-
fn remove_no_ownername_return_error() {
105-
setup("foo", None);
106-
107-
let p = project()
108-
.file(
109-
"Cargo.toml",
110-
r#"
111-
[package]
112-
name = "foo"
113-
version = "0.0.1"
114-
authors = []
115-
license = "MIT"
116-
description = "foo"
117-
"#,
118-
)
119-
.file("src/main.rs", "fn main() {}")
120-
.build();
121-
122-
p.cargo("owner remove")
123-
.with_status(1)
124-
.with_stderr(
125-
"\
126-
error: the following required arguments were not provided:
127-
<OWNER_NAME>
128-
129-
Usage: cargo owner remove <OWNER_NAME> [CRATE_NAME]
130-
131-
For more information, try '--help'.",
132-
)
133-
.run();
134-
}
135-
13617
#[cargo_test]
13718
fn simple_list() {
13819
let registry = registry::init();

0 commit comments

Comments
 (0)