@@ -77,10 +77,14 @@ def dummy_return_question_detail_dict(
7777@mock .patch ("os.environ" , mock .MagicMock (return_value = {"LEETCODE_SESSION_ID" : "test" }))
7878@mock .patch ("leetcode.auth" , mock .MagicMock ())
7979class TestLeetcode :
80+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
81+ # `pytest.mark.asyncio`.
8082 @pytest .mark .asyncio
8183 async def test_get_leetcode_api_client (self ) -> None :
8284 assert leetcode_anki .helpers .leetcode ._get_leetcode_api_client ()
8385
86+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
87+ # `pytest.mark.asyncio`.
8488 @pytest .mark .asyncio
8589 async def test_retry (self ) -> None :
8690 decorator = leetcode_anki .helpers .leetcode .retry (
@@ -134,6 +138,8 @@ def setup(self) -> None:
134138 0 , 10000
135139 )
136140
141+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
142+ # `pytest.mark.asyncio`.
137143 @pytest .mark .asyncio
138144 @mock .patch (
139145 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -142,6 +148,8 @@ def setup(self) -> None:
142148 async def test_init (self ) -> None :
143149 self ._leetcode_data ._cache ["test" ] = QUESTION_DETAIL
144150
151+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
152+ # `pytest.mark.asyncio`.
145153 @pytest .mark .asyncio
146154 @mock .patch (
147155 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -151,6 +159,8 @@ async def test_get_description(self) -> None:
151159 self ._leetcode_data ._cache ["test" ] = QUESTION_DETAIL
152160 assert (await self ._leetcode_data .description ("test" )) == "test content"
153161
162+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
163+ # `pytest.mark.asyncio`.
154164 @pytest .mark .asyncio
155165 @mock .patch (
156166 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -162,6 +172,8 @@ async def test_submissions(self) -> None:
162172 assert (await self ._leetcode_data .submissions_total ("test" )) == 1
163173 assert (await self ._leetcode_data .submissions_accepted ("test" )) == 1
164174
175+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
176+ # `pytest.mark.asyncio`.
165177 @pytest .mark .asyncio
166178 @mock .patch (
167179 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -173,6 +185,8 @@ async def test_difficulty_easy(self) -> None:
173185 QUESTION_DETAIL .difficulty = "Easy"
174186 assert "Easy" in (await self ._leetcode_data .difficulty ("test" ))
175187
188+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
189+ # `pytest.mark.asyncio`.
176190 @pytest .mark .asyncio
177191 @mock .patch (
178192 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -184,6 +198,8 @@ async def test_difficulty_medium(self) -> None:
184198 QUESTION_DETAIL .difficulty = "Medium"
185199 assert "Medium" in (await self ._leetcode_data .difficulty ("test" ))
186200
201+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
202+ # `pytest.mark.asyncio`.
187203 @pytest .mark .asyncio
188204 @mock .patch (
189205 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -195,6 +211,8 @@ async def test_difficulty_hard(self) -> None:
195211 QUESTION_DETAIL .difficulty = "Hard"
196212 assert "Hard" in (await self ._leetcode_data .difficulty ("test" ))
197213
214+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
215+ # `pytest.mark.asyncio`.
198216 @pytest .mark .asyncio
199217 @mock .patch (
200218 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -205,6 +223,8 @@ async def test_paid(self) -> None:
205223
206224 assert (await self ._leetcode_data .paid ("test" )) is False
207225
226+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
227+ # `pytest.mark.asyncio`.
208228 @pytest .mark .asyncio
209229 @mock .patch (
210230 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -215,6 +235,8 @@ async def test_problem_id(self) -> None:
215235
216236 assert (await self ._leetcode_data .problem_id ("test" )) == "1"
217237
238+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
239+ # `pytest.mark.asyncio`.
218240 @pytest .mark .asyncio
219241 @mock .patch (
220242 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -225,6 +247,8 @@ async def test_likes(self) -> None:
225247
226248 assert (await self ._leetcode_data .likes ("test" )) == 1
227249
250+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
251+ # `pytest.mark.asyncio`.
228252 @pytest .mark .asyncio
229253 @mock .patch (
230254 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -235,6 +259,8 @@ async def test_dislikes(self) -> None:
235259
236260 assert (await self ._leetcode_data .dislikes ("test" )) == 1
237261
262+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
263+ # `pytest.mark.asyncio`.
238264 @pytest .mark .asyncio
239265 @mock .patch (
240266 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -248,6 +274,8 @@ async def test_tags(self) -> None:
248274 "difficulty-hard-tag" ,
249275 ]
250276
277+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
278+ # `pytest.mark.asyncio`.
251279 @pytest .mark .asyncio
252280 @mock .patch (
253281 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -258,6 +286,8 @@ async def test_freq_bar(self) -> None:
258286
259287 assert (await self ._leetcode_data .freq_bar ("test" )) == 1.1
260288
289+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
290+ # `pytest.mark.asyncio`.
261291 @pytest .mark .asyncio
262292 @mock .patch (
263293 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data" ,
@@ -267,6 +297,8 @@ async def test_get_problem_data(self) -> None:
267297 assert self ._leetcode_data ._cache ["test" ] == QUESTION_DETAIL
268298
269299 @mock .patch ("time.sleep" , mock .Mock ())
300+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
301+ # `pytest.mark.asyncio`.
270302 @pytest .mark .asyncio
271303 async def test_get_problems_data_page (self ) -> None :
272304 data = leetcode .models .graphql_data .GraphqlData (
@@ -281,14 +313,20 @@ async def test_get_problems_data_page(self) -> None:
281313 QUESTION_DETAIL
282314 ]
283315
316+ # pyre-fixme[56]: Pyre was not able to infer the type of the decorator
317+ # `pytest.mark.asyncio`.
284318 @pytest .mark .asyncio
285319 @mock .patch (
286320 "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_count" ,
287321 mock .Mock (return_value = 234 ),
288322 )
289323 @mock .patch ("leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data_page" )
290- async def test_get_problems_data (self , mock_get_problems_data_page ) -> None :
291- question_list = [QUESTION_DETAIL ] * 234
324+ async def test_get_problems_data (
325+ self , mock_get_problems_data_page : mock .Mock
326+ ) -> None :
327+ question_list : List [
328+ leetcode .models .graphql_question_detail .GraphqlQuestionDetail
329+ ] = [QUESTION_DETAIL ] * 234
292330
293331 def dummy (
294332 offset : int , page_size : int , page : int
0 commit comments