mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Switch from poetry to uv
This commit is contained in:
@ -127,7 +127,7 @@ class Command(BaseCommand):
|
||||
|
||||
# dumps and sales are linked to the same customers
|
||||
# and or both ordered with the same key, so zipping them is valid
|
||||
for dump, sale in zip(pending_dumps, sales):
|
||||
for dump, sale in zip(pending_dumps, sales, strict=False):
|
||||
dump.dump_operation = sale
|
||||
AccountDump.objects.bulk_update(pending_dumps, ["dump_operation"])
|
||||
|
||||
|
@ -726,7 +726,7 @@ class TestCounterStats(TestCase):
|
||||
"nickname": user.nick_name,
|
||||
"perm_sum": perm_time,
|
||||
}
|
||||
for user, perm_time in zip(users, perm_times)
|
||||
for user, perm_time in zip(users, perm_times, strict=False)
|
||||
]
|
||||
|
||||
def test_top_customer(self):
|
||||
@ -741,7 +741,7 @@ class TestCounterStats(TestCase):
|
||||
"nickname": user.nick_name,
|
||||
"selling_sum": sale_amount,
|
||||
}
|
||||
for user, sale_amount in zip(users, sale_amounts)
|
||||
for user, sale_amount in zip(users, sale_amounts, strict=False)
|
||||
]
|
||||
|
||||
|
||||
|
@ -462,6 +462,6 @@ def test_update_balance():
|
||||
# put everything at zero to be sure the amounts were wrong beforehand
|
||||
customers_qs.update(amount=0)
|
||||
customers_qs.update_amount()
|
||||
for customer, amount in zip(customers, [40, 10, 20, 40, 0]):
|
||||
for customer, amount in zip(customers, [40, 10, 20, 40, 0], strict=False):
|
||||
customer.refresh_from_db()
|
||||
assert customer.amount == amount
|
||||
|
Reference in New Issue
Block a user