File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -23,32 +23,6 @@ def mock_credit_balance_response():
2323 return mock_response
2424
2525
26- @pytest .fixture
27- def mock_credits_list_response ():
28- """Create a mock response for credits list API call."""
29- mock_response = AsyncMock ()
30- mock_response .__aenter__ .return_value = mock_response
31- mock_response .status = 200
32- mock_response .json = AsyncMock (
33- return_value = {
34- "credit_balances" : [
35- {
36- "address" : "0x1234567890123456789012345678901234567890" ,
37- "credits" : 1000000000 ,
38- },
39- {
40- "address" : "0x0987654321098765432109876543210987654321" ,
41- "credits" : 500000000 ,
42- },
43- ],
44- "pagination_page" : 1 ,
45- "pagination_total" : 1 ,
46- "pagination_per_page" : 100 ,
47- }
48- )
49- return mock_response
50-
51-
5226@pytest .fixture
5327def mock_credit_history_response ():
5428 """Create a mock response for credit history API call."""
You can’t perform that action at this time.
0 commit comments