cargo fmt
Rust Build / Rustfmt (pull_request) Successful in 40s
Rust Build / Clippy (pull_request) Successful in 1m22s
Rust Build / Check (pull_request) Successful in 1m45s

This commit is contained in:
2026-07-01 22:35:25 -04:00
parent 5309f7fc3e
commit 2da516f85a
+13 -4
View File
@@ -231,8 +231,10 @@ pub mod requests {
app: &axum::Router,
user_id: &uuid::Uuid,
) -> Result<axum::response::Response, axum::http::Error> {
let url = super::util::format_url_with_value(textsender_auth::callers::endpoints::GET_USER_PROFILE, user_id);
let url = super::util::format_url_with_value(
textsender_auth::callers::endpoints::GET_USER_PROFILE,
user_id,
);
match axum::http::Request::builder()
.method(axum::http::Method::GET)
.uri(url)
@@ -1061,11 +1063,18 @@ async fn test_get_user_profile() {
match requests::get_user_profile(&app, &user_id).await {
Ok(response) => {
match util::convert_response::<textsender_auth::callers::login::response::GetUserProfileResponse>(response).await {
match util::convert_response::<
textsender_auth::callers::login::response::GetUserProfileResponse,
>(response)
.await
{
Ok(response) => {
assert_eq!(false, response.data.is_empty(), "No User Profile found");
let user_profile = &response.data[0];
assert_eq!(TEST_USERNAME, user_profile.username, "Username does not match");
assert_eq!(
TEST_USERNAME, user_profile.username,
"Username does not match"
);
}
Err(err) => {
assert!(false, "Error: {err:?}");