Refactoring tests #257
+8
-10
@@ -2475,16 +2475,14 @@ mod tests {
|
|||||||
match app
|
match app
|
||||||
.clone()
|
.clone()
|
||||||
.oneshot(
|
.oneshot(
|
||||||
axum::http::Request::builder()
|
super::request::run_post(
|
||||||
.method(axum::http::Method::GET)
|
None,
|
||||||
.uri(crate::callers::endpoints::GETALLSONGS)
|
crate::callers::endpoints::GETALLSONGS,
|
||||||
.header(axum::http::header::CONTENT_TYPE, "application/json")
|
axum::http::Method::GET,
|
||||||
.header(
|
false,
|
||||||
axum::http::header::AUTHORIZATION,
|
)
|
||||||
super::bearer_auth().await,
|
.await
|
||||||
)
|
.unwrap(),
|
||||||
.body(axum::body::Body::empty())
|
|
||||||
.unwrap(),
|
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user