fix: change friendship status values from accepted/pending to active in tests

This commit is contained in:
qzl
2026-02-28 12:04:26 +08:00
parent 17551d662b
commit b66a8499ed
@@ -84,14 +84,14 @@ def test_friend_response_maps_fields() -> None:
response = FriendResponse(
id=request_id,
friend=friend_user,
status="accepted",
status="active",
created_at=created,
accepted_at=accepted,
)
assert response.id == request_id
assert response.friend.username == "bob"
assert response.status == "accepted"
assert response.status == "active"
assert response.accepted_at == accepted
@@ -103,7 +103,7 @@ def test_friend_response_accepted_at_optional() -> None:
response = FriendResponse(
id=request_id,
friend=friend_user,
status="pending",
status="active",
created_at=created,
accepted_at=None,
)