fix: change friendship status values from accepted/pending to active in tests
This commit is contained in:
@@ -84,14 +84,14 @@ def test_friend_response_maps_fields() -> None:
|
|||||||
response = FriendResponse(
|
response = FriendResponse(
|
||||||
id=request_id,
|
id=request_id,
|
||||||
friend=friend_user,
|
friend=friend_user,
|
||||||
status="accepted",
|
status="active",
|
||||||
created_at=created,
|
created_at=created,
|
||||||
accepted_at=accepted,
|
accepted_at=accepted,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert response.id == request_id
|
assert response.id == request_id
|
||||||
assert response.friend.username == "bob"
|
assert response.friend.username == "bob"
|
||||||
assert response.status == "accepted"
|
assert response.status == "active"
|
||||||
assert response.accepted_at == accepted
|
assert response.accepted_at == accepted
|
||||||
|
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ def test_friend_response_accepted_at_optional() -> None:
|
|||||||
response = FriendResponse(
|
response = FriendResponse(
|
||||||
id=request_id,
|
id=request_id,
|
||||||
friend=friend_user,
|
friend=friend_user,
|
||||||
status="pending",
|
status="active",
|
||||||
created_at=created,
|
created_at=created,
|
||||||
accepted_at=None,
|
accepted_at=None,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user