Skip to content

Commit

Permalink
Use --skip-save-credentials in test
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpryer committed Feb 26, 2024
1 parent d3bb60d commit 2b102c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions rye/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ toolchain = "[email protected]"
fs::write(
credentials_file,
r#"
[pypi]
[bad-repo]
Expand All @@ -70,15 +71,15 @@ username = "bad name"
token = "bad token"
[good-repo-bad-token]
repository-url = "http://localhost:5353"
repository-url = "http://localhost:5353/"
token = "bad token"
[good-repo-keyring]
repository-url = "http://localhost:5353"
repository-url = "http://localhost:5353/"
username = "test-keyring"
[no-repo-username-keyring]
repository-url = "http://localhost:5353"
repository-url = "http://localhost:5353/"
"#,
)
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion rye/tests/test_publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fn test_publish() {
"###);

// prompt username (keyring fallback)
rye_cmd_snapshot!(space.rye_cmd().arg("publish").arg("-r").arg("no-repo-username-keyring"), @r###"
rye_cmd_snapshot!(space.rye_cmd().arg("publish").arg("-r").arg("no-repo-username-keyring").arg("--skip-save-credentials"), @r###"
success: false
exit_code: 1
----- stdout -----
Expand Down

0 comments on commit 2b102c7

Please sign in to comment.