From 652d7e784803158c5159bc9111c04cfb102c878e Mon Sep 17 00:00:00 2001 From: Mariusz Trela Date: Mon, 9 Jun 2025 14:24:34 +0200 Subject: [PATCH] Add `is_paid` member for `FindCommentsFundament` --- schemas/apis/database_api/fundaments_of_reponses.py | 1 + tests/test_condenser_api/responses_from_api.py | 8 ++++++++ tests/test_database_api/responses_from_api.py | 1 + 3 files changed, 10 insertions(+) diff --git a/schemas/apis/database_api/fundaments_of_reponses.py b/schemas/apis/database_api/fundaments_of_reponses.py index 6d490486..5324c075 100644 --- a/schemas/apis/database_api/fundaments_of_reponses.py +++ b/schemas/apis/database_api/fundaments_of_reponses.py @@ -161,6 +161,7 @@ class FindCommentsFundament(PreconfiguredBaseModel, GenericModel, Generic[AssetH allow_curation_rewards: bool beneficiaries: list[Any] was_voted_on: bool + is_paid: bool class FindDeclineVotingRightsRequestsFundament(PreconfiguredBaseModel): diff --git a/tests/test_condenser_api/responses_from_api.py b/tests/test_condenser_api/responses_from_api.py index 8daebc7f..e0f1caf7 100644 --- a/tests/test_condenser_api/responses_from_api.py +++ b/tests/test_condenser_api/responses_from_api.py @@ -72,6 +72,7 @@ GET_DISCUSSIONS_BY_AUTHOR_BEFORE_DATE: Final[dict[str, Any]] = { "post_id": 123721714, "net_rshares": 19331428900025, "was_voted_on": True, + "is_paid": False, "active_votes": [ {"percent": "10000", "reputation": 7606052098882, "rshares": 817822454, "voter": "konelectric"}, {"percent": "10000", "reputation": 7084649348142, "rshares": 399494720371, "voter": "kendewitt"}, @@ -2258,6 +2259,7 @@ GET_BLOG: Final[dict[str, Any]] = { "post_id": 123721714, "net_rshares": 19331428900025, "was_voted_on": True, + "is_paid": False, "active_votes": [ {"percent": "10000", "reputation": 7606052098882, "rshares": 817822454, "voter": "konelectric"}, {"percent": "10000", "reputation": 7084649348142, "rshares": 399494720371, "voter": "kendewitt"}, @@ -2441,6 +2443,7 @@ GET_COMMENT_DISCUSSION_BY_PAYOUT: Final[dict[str, Any]] = { "post_id": 123615714, "net_rshares": 509581466063, "was_voted_on": False, + "is_paid": False, "active_votes": [ {"percent": "10000", "reputation": 280616224641976, "rshares": 474641612071, "voter": "justyy"}, {"percent": "300", "reputation": 872751821566595, "rshares": 34939853992, "voter": "bozz"}, @@ -2751,6 +2754,7 @@ GET_CONTENT: Final[dict[str, Any]] = { "net_rshares": 19331428900025, "abs_rshares": 19331428900025, "was_voted_on": True, + "is_paid": False, "active_votes": [ { "percent": 10000, @@ -3388,6 +3392,7 @@ GET_CONTENT_REPLIES: Final[dict[str, Any]] = { "net_rshares": 0, "abs_rshares": 0, "was_voted_on": True, + "is_paid": False, "active_votes": [], }, { @@ -3435,6 +3440,7 @@ GET_CONTENT_REPLIES: Final[dict[str, Any]] = { "net_rshares": 0, "abs_rshares": 0, "was_voted_on": True, + "is_paid": False, "active_votes": [], }, { @@ -3482,6 +3488,7 @@ GET_CONTENT_REPLIES: Final[dict[str, Any]] = { "net_rshares": 28301117063, "abs_rshares": 28301117063, "was_voted_on": True, + "is_paid": False, "active_votes": [ { "percent": 5000, @@ -3538,6 +3545,7 @@ GET_CONTENT_REPLIES: Final[dict[str, Any]] = { "net_rshares": 0, "abs_rshares": 0, "was_voted_on": True, + "is_paid": False, "active_votes": [], }, ], diff --git a/tests/test_database_api/responses_from_api.py b/tests/test_database_api/responses_from_api.py index 97b3894d..1ca95288 100644 --- a/tests/test_database_api/responses_from_api.py +++ b/tests/test_database_api/responses_from_api.py @@ -128,6 +128,7 @@ FIND_COMMENTS = { "net_votes": 128, "total_vote_weight": 0, "was_voted_on": True, + "is_paid": False, "vote_rshares": 0, "net_rshares": 0, "abs_rshares": 0, -- GitLab