You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let response = token.enqueue_publish(crate_to_publish);
619
619
assert_eq!(response.status(),StatusCode::OK);
620
620
assert_eq!(
621
-
response.json(),
621
+
response.into_json(),
622
622
json!({"errors":[{"detail":"A verified email address is required to publish crates to crates.io. Visit https://crates.io/me to set and verify your email address."}]})
let response = token.enqueue_publish(crate_to_publish);
640
640
assert_eq!(response.status(),StatusCode::OK);
641
641
assert_eq!(
642
-
response.json(),
642
+
response.into_json(),
643
643
json!({"errors":[{"detail":"A verified email address is required to publish crates to crates.io. Visit https://crates.io/me to set and verify your email address."}]})
644
644
);
645
645
}
@@ -729,23 +729,23 @@ fn bad_keywords() {
729
729
let response = token.enqueue_publish(crate_to_publish);
730
730
assert_eq!(response.status(),StatusCode::OK);
731
731
assert_eq!(
732
-
response.json(),
732
+
response.into_json(),
733
733
json!({"errors":[{"detail":"invalid upload request: invalid length 29, expected a keyword with less than 20 characters at line 1 column 203"}]})
734
734
);
735
735
736
736
let crate_to_publish = PublishBuilder::new("foo_bad_key").keyword("?@?%");
737
737
let response = token.enqueue_publish(crate_to_publish);
738
738
assert_eq!(response.status(),StatusCode::OK);
739
739
assert_eq!(
740
-
response.json(),
740
+
response.into_json(),
741
741
json!({"errors":[{"detail":"invalid upload request: invalid value: string \"?@?%\", expected a valid keyword specifier at line 1 column 178"}]})
742
742
);
743
743
744
744
let crate_to_publish = PublishBuilder::new("foo_bad_key").keyword("áccênts");
745
745
let response = token.enqueue_publish(crate_to_publish);
746
746
assert_eq!(response.status(),StatusCode::OK);
747
747
assert_eq!(
748
-
response.json(),
748
+
response.into_json(),
749
749
json!({"errors":[{"detail":"invalid upload request: invalid value: string \"áccênts\", expected a valid keyword specifier at line 1 column 183"}]})
0 commit comments