feat(api): distinguish between not enrolled and not found user statuses

This commit is contained in:
shay
2026-05-03 20:38:21 -04:00
parent 954f259b8f
commit 50dd73a0de
3 changed files with 17 additions and 2 deletions
+3
View File
@@ -293,6 +293,9 @@ def test_refresh_without_session_is_401(client):
def test_data_unknown_user_returns_404(client):
r = client.get("/api/testuser/data")
assert r.status_code == 404
# Unknown-but-not-enrolled is distinct from confirmed-not-on-GitHub so
# the frontend can avoid a misleading "User not found" message.
assert r.get_json()["status"] == "not_enrolled"
def test_enroll_endpoint_is_gone(client):