mega chore: update sqlalchemy (#2611)
* update sqlalchemy to 1.4 * async postgres --------- Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
parent
c637e8d31e
commit
21d87adc52
17 changed files with 1020 additions and 951 deletions
|
|
@ -367,11 +367,11 @@ async def test_get_payments_history(client, adminkey_headers_from, fake_payments
|
|||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert len(data) == 1
|
||||
assert data[0]["spending"] == sum(
|
||||
payment.amount * 1000 for payment in fake_data if payment.out
|
||||
)
|
||||
assert data[0]["income"] == sum(
|
||||
payment.amount * 1000 for payment in fake_data if not payment.out
|
||||
[int(payment.amount * 1000) for payment in fake_data if not payment.out]
|
||||
)
|
||||
assert data[0]["spending"] == sum(
|
||||
[int(payment.amount * 1000) for payment in fake_data if payment.out]
|
||||
)
|
||||
|
||||
response = await client.get(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue