-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/krate/publish/keywords: Replace hardcoded error message expecta…
…tions with insta snapshots (#7196)
- Loading branch information
Showing
4 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/tests/krate/publish/snapshots/all__krate__publish__keywords__bad_keywords-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
source: src/tests/krate/publish/keywords.rs | ||
expression: response.into_json() | ||
--- | ||
{ | ||
"errors": [ | ||
{ | ||
"detail": "invalid upload request: invalid value: string \"?@?%\", expected a valid keyword specifier at line 1 column 178" | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
src/tests/krate/publish/snapshots/all__krate__publish__keywords__bad_keywords-3.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
source: src/tests/krate/publish/keywords.rs | ||
expression: response.into_json() | ||
--- | ||
{ | ||
"errors": [ | ||
{ | ||
"detail": "invalid upload request: invalid value: string \"áccênts\", expected a valid keyword specifier at line 1 column 183" | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
src/tests/krate/publish/snapshots/all__krate__publish__keywords__bad_keywords.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
source: src/tests/krate/publish/keywords.rs | ||
expression: response.into_json() | ||
--- | ||
{ | ||
"errors": [ | ||
{ | ||
"detail": "invalid upload request: invalid length 29, expected a keyword with less than 20 characters at line 1 column 203" | ||
} | ||
] | ||
} |