Skip to content

Commit af7d755

Browse files
committed
add count test
1 parent ff25146 commit af7d755

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/test_session.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,24 @@ def test_make_request_with_order(session: lpdb.LpdbSession):
6666
assert responses[i - 1]["date"] <= responses[i]["date"]
6767

6868

69+
def test_make_count_request(session: lpdb.LpdbSession):
70+
responses = session.make_request(
71+
"match",
72+
"leagueoflegends",
73+
conditions="[[parent::World_Championship/2025]]",
74+
limit=1000,
75+
)
76+
77+
count_response = session.make_count_request(
78+
"match",
79+
"leagueoflegends",
80+
conditions="[[parent::World_Championship/2025]]",
81+
)
82+
83+
assert isinstance(count_response, int)
84+
assert len(responses) == count_response
85+
86+
6987
def test_get_team_template(session: lpdb.LpdbSession):
7088
template = session.get_team_template("leagueoflegends", "t1")
7189
assert template["page"] == "T1"

0 commit comments

Comments
 (0)