API: Fix order total after order change operation (#2700)

This commit is contained in:
Raphael Michel
2022-06-27 12:41:54 +02:00
committed by GitHub
parent c6c8e00f43
commit 5a6b7d783b
2 changed files with 7 additions and 0 deletions

View File

@@ -1673,6 +1673,8 @@ def test_order_change_patch(token_client, organizer, event, order, quota):
assert p.item == item2
f.refresh_from_db()
assert f.value == Decimal('10.00')
order.refresh_from_db()
assert order.total == Decimal('109.44')
@pytest.mark.django_db