Fix test to use different dates for multiple trades
This commit is contained in:
parent
62721cbcf4
commit
43a58565c0
1 changed files with 5 additions and 2 deletions
|
|
@ -615,10 +615,13 @@ class TestUserTrades:
|
|||
):
|
||||
"""Returns user's trades."""
|
||||
target_date = await setup_availability_and_price(client_factory, admin_user)
|
||||
target_date_2 = await setup_availability_and_price(
|
||||
client_factory, admin_user, target_date=in_days(2)
|
||||
)
|
||||
|
||||
with mock_price_fetcher(20000.0):
|
||||
async with client_factory.create(cookies=regular_user["cookies"]) as client:
|
||||
# Book two trades
|
||||
# Book two trades on different days
|
||||
await client.post(
|
||||
"/api/exchange",
|
||||
json={
|
||||
|
|
@ -631,7 +634,7 @@ class TestUserTrades:
|
|||
await client.post(
|
||||
"/api/exchange",
|
||||
json={
|
||||
"slot_start": f"{target_date}T10:00:00Z",
|
||||
"slot_start": f"{target_date_2}T10:00:00Z",
|
||||
"direction": "sell",
|
||||
"bitcoin_transfer_method": "lightning",
|
||||
"eur_amount": 20000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue