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 f74f610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rye/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,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 f74f610

Please sign in to comment.