Skip to content

Commit 8d2ddcb

Browse files
Fix tests
1 parent 85957f2 commit 8d2ddcb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/spot/test_spot_base_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ async def check() -> None:
123123

124124
@pytest.mark.spot
125125
@pytest.mark.spot_auth
126-
@pytest.mark.timeout(120)
127-
@pytest.mark.flaky(retries=0)
128126
@pytest.mark.parametrize("report", ["trades", "ledgers"])
129127
def test_spot_rest_async_client_post_report(
130128
report: str,
@@ -148,7 +146,6 @@ async def check() -> None:
148146
"report": report,
149147
"description": export_descr,
150148
},
151-
timeout=30,
152149
)
153150
assert is_not_error(response)
154151
assert "id" in response
@@ -184,6 +181,9 @@ async def check() -> None:
184181
)
185182
assert isinstance(status, list)
186183
for response in status:
184+
if response.get("delete"):
185+
# ignore already deleted reports
186+
continue
187187
assert "id" in response
188188
with suppress(Exception):
189189
assert isinstance(

tests/spot/test_spot_user.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ def test_get_trade_volume(spot_auth_user: User) -> None:
311311
@pytest.mark.spot
312312
@pytest.mark.spot_auth
313313
@pytest.mark.spot_user
314-
@pytest.mark.timeout(120)
315314
@pytest.mark.parametrize("report", ["trades", "ledgers"])
316315
def test_request_save_export_report(report: str, spot_auth_user: User) -> None:
317316
"""
@@ -336,7 +335,6 @@ def test_request_save_export_report(report: str, spot_auth_user: User) -> None:
336335
format_="CSV",
337336
starttm=first_of_current_month,
338337
endtm=first_of_current_month + 100 * 100,
339-
timeout=30,
340338
)
341339
assert is_not_error(response)
342340
assert "id" in response
@@ -359,6 +357,9 @@ def test_request_save_export_report(report: str, spot_auth_user: User) -> None:
359357
status = spot_auth_user.get_export_report_status(report=report)
360358
assert isinstance(status, list)
361359
for response in status:
360+
if response.get("delete"):
361+
# ignore already deleted reports
362+
continue
362363
assert "id" in response
363364
with suppress(Exception):
364365
assert isinstance(

0 commit comments

Comments
 (0)