First one #8
@@ -175,13 +175,7 @@ mod request {
|
|||||||
"phone_number": super::TEST_CONTACT_PHONE_NUMBER,
|
"phone_number": super::TEST_CONTACT_PHONE_NUMBER,
|
||||||
"user_id": super::TEST_USER_ID,
|
"user_id": super::TEST_USER_ID,
|
||||||
});
|
});
|
||||||
// Create multipart form
|
|
||||||
// let mut form = MultipartForm::default();
|
|
||||||
// let _ = form.add_file("flac", "tests/I/track01.flac");
|
|
||||||
|
|
||||||
// Create request
|
|
||||||
// let content_type = form.content_type();
|
|
||||||
// let body = MultipartBody::from(form);
|
|
||||||
let req = axum::http::Request::builder()
|
let req = axum::http::Request::builder()
|
||||||
.method(axum::http::Method::POST)
|
.method(axum::http::Method::POST)
|
||||||
.uri(textsender_api::caller::endpoints::ADD_CONTACT)
|
.uri(textsender_api::caller::endpoints::ADD_CONTACT)
|
||||||
@@ -191,7 +185,6 @@ mod request {
|
|||||||
super::bearer_auth().await,
|
super::bearer_auth().await,
|
||||||
)
|
)
|
||||||
.body(axum::body::Body::from(payload.to_string()))
|
.body(axum::body::Body::from(payload.to_string()))
|
||||||
// .body(axum::body::Body::from_stream(body))
|
|
||||||
.unwrap();
|
.unwrap();
|
||||||
app.clone().oneshot(req).await
|
app.clone().oneshot(req).await
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user