mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
feat(api): distinguish between not enrolled and not found user statuses
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user