Add Login #4

Merged
phoenix merged 21 commits from add_login into main 2026-06-10 00:13:55 -04:00
Showing only changes of commit 31e501d6b9 - Show all commits
+7 -1
View File
@@ -131,13 +131,19 @@ async fn test_register_user() {
match requests::register_user(&app).await {
Ok(response) => {
assert_eq!(
axum::http::StatusCode::CREATED,
response.status(),
"Status does not match {:?}",
response.status()
);
let body = axum::body::to_bytes(response.into_body(), usize::MAX)
.await
.unwrap();
let parsed_body: callers::register::response::Response =
serde_json::from_slice(&body).unwrap();
assert!(parsed_body.data.len() > 0, "No data found");
let returned_user = &parsed_body.data[0];
assert_eq!(
TEST_USERNAME, returned_user.username,
"Error with returned user"