tsk-204: Changing name of test payload function #239

Merged
kdeng00 merged 3 commits from tsk-204 into main 2025-11-03 13:41:56 -05:00
Showing only changes of commit d81a100b59 - Show all commits
+2 -3
View File
@@ -612,7 +612,7 @@ mod tests {
app: &axum::Router, app: &axum::Router,
song_queue_id: &uuid::Uuid, song_queue_id: &uuid::Uuid,
) -> Result<axum::response::Response, std::convert::Infallible> { ) -> Result<axum::response::Response, std::convert::Infallible> {
let payload = super::payload_data::queue_metadata_payload_data(&song_queue_id).await; let payload = super::payload_data::queue_metadata(&song_queue_id).await;
let req = axum::http::Request::builder() let req = axum::http::Request::builder()
.method(axum::http::Method::POST) .method(axum::http::Method::POST)
@@ -902,9 +902,8 @@ mod tests {
} }
} }
// TODO: Change the name of the function to be more expressive and put into it's own module
pub mod payload_data { pub mod payload_data {
pub async fn queue_metadata_payload_data(song_queue_id: &uuid::Uuid) -> serde_json::Value { pub async fn queue_metadata(song_queue_id: &uuid::Uuid) -> serde_json::Value {
serde_json::json!( serde_json::json!(
{ {
"song_queue_id": song_queue_id, "song_queue_id": song_queue_id,