What??
This commit is contained in:
+45
-18
@@ -1036,7 +1036,17 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
request::run_post(Some(request::ReqBody::Multipart(("flac".to_string(), songpath))), &uri, axum::http::Method::PATCH, true).await.unwrap()
|
request::run_post(
|
||||||
|
Some(request::ReqBody::Multipart((
|
||||||
|
"flac".to_string(),
|
||||||
|
songpath,
|
||||||
|
))),
|
||||||
|
&uri,
|
||||||
|
axum::http::Method::PATCH,
|
||||||
|
true,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.unwrap(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
@@ -1517,16 +1527,14 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
axum::http::Request::builder()
|
request::run_post(
|
||||||
.method(axum::http::Method::GET)
|
None,
|
||||||
.uri(uri)
|
&uri,
|
||||||
.header(axum::http::header::CONTENT_TYPE, "image/jpeg")
|
axum::http::Method::GET,
|
||||||
.header(
|
false,
|
||||||
axum::http::header::AUTHORIZATION,
|
)
|
||||||
bearer_auth().await,
|
.await
|
||||||
)
|
.unwrap(),
|
||||||
.body(axum::body::Body::empty())
|
|
||||||
.unwrap(),
|
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
@@ -1912,7 +1920,14 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
request::run_post(Some(request::ReqBody::Json(payload)), crate::callers::queue::endpoints::QUEUECOVERARTDATAWIPE, axum::http::Method::PATCH, true).await.unwrap()
|
request::run_post(
|
||||||
|
Some(request::ReqBody::Json(payload)),
|
||||||
|
crate::callers::queue::endpoints::QUEUECOVERARTDATAWIPE,
|
||||||
|
axum::http::Method::PATCH,
|
||||||
|
true,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.unwrap(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
@@ -1980,7 +1995,9 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
super::request::run_post(None, &uri, axum::http::Method::GET, false).await.unwrap()
|
super::request::run_post(None, &uri, axum::http::Method::GET, false)
|
||||||
|
.await
|
||||||
|
.unwrap(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
@@ -2028,7 +2045,9 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
super::request::run_post(None, &uri, axum::http::Method::GET, false).await.unwrap()
|
super::request::run_post(None, &uri, axum::http::Method::GET, false)
|
||||||
|
.await
|
||||||
|
.unwrap(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
@@ -2108,7 +2127,9 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
super::request::run_post(None, &uri, axum::http::Method::GET, false).await.unwrap()
|
super::request::run_post(None, &uri, axum::http::Method::GET, false)
|
||||||
|
.await
|
||||||
|
.unwrap(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
@@ -2160,7 +2181,9 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
super::request::run_post(None, &uri, axum::http::Method::GET, false).await.unwrap()
|
super::request::run_post(None, &uri, axum::http::Method::GET, false)
|
||||||
|
.await
|
||||||
|
.unwrap(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
@@ -2214,7 +2237,9 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
super::request::run_post(None, &uri, axum::http::Method::GET, false).await.unwrap()
|
super::request::run_post(None, &uri, axum::http::Method::GET, false)
|
||||||
|
.await
|
||||||
|
.unwrap(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
@@ -2333,7 +2358,9 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
super::request::run_post(None, &uri, axum::http::Method::DELETE, false).await.unwrap()
|
super::request::run_post(None, &uri, axum::http::Method::DELETE, false)
|
||||||
|
.await
|
||||||
|
.unwrap(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user