Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

tests: auth status now reports device_login

Lin (kwant bot)10eb4b1b47cd
diff --git a/tests/profiles_api_test.rs b/tests/profiles_api_test.rs
index 4262dd63..2e2a94d5 100644
--- a/tests/profiles_api_test.rs
+++ b/tests/profiles_api_test.rs
@@ -485,7 +485,7 @@ async fn remote_requests_need_the_token() {
assert_eq!(s, StatusCode::OK);
assert_eq!(
serde_json::from_str::<Value>(&body).unwrap(),
- json!({"auth_required": true, "authenticated": false, "person_auth_required": true, "person_authenticated": false})
+ json!({"auth_required": true, "authenticated": false, "device_login": true, "person_auth_required": true, "person_authenticated": false})
);
let bearer = format!("Bearer {TOKEN}");
@@ -585,6 +585,6 @@ async fn remote_requests_need_the_token() {
.await;
assert_eq!(
serde_json::from_str::<Value>(&body).unwrap(),
- json!({"auth_required": false, "authenticated": true, "person_auth_required": false, "person_authenticated": true})
+ json!({"auth_required": false, "authenticated": true, "device_login": true, "person_auth_required": false, "person_authenticated": true})
);
}