Fix failing tests

This commit is contained in:
Raphael Michel
2020-08-26 16:33:31 +02:00
parent 6e76db40ed
commit a635ea527e
9 changed files with 42 additions and 42 deletions

View File

@@ -758,7 +758,7 @@ def test_order_extend_expired_seat_free(client, env):
o.status = Order.STATUS_EXPIRED
o.save()
generate_cancellation(generate_invoice(o))
seat_a1 = env[0].seats.create(name="A1", product=env[3], seat_guid="A1")
seat_a1 = env[0].seats.create(seat_number="A1", product=env[3], seat_guid="A1")
p = o.positions.first()
p.seat = seat_a1
p.save()
@@ -786,7 +786,7 @@ def test_order_extend_expired_seat_blocked(client, env):
o.status = Order.STATUS_EXPIRED
olddate = o.expires
o.save()
seat_a1 = env[0].seats.create(name="A1", product=env[3], seat_guid="A1", blocked=True)
seat_a1 = env[0].seats.create(seat_number="A1", product=env[3], seat_guid="A1", blocked=True)
p = o.positions.first()
p.seat = seat_a1
p.save()
@@ -813,7 +813,7 @@ def test_order_extend_expired_seat_taken(client, env):
o.status = Order.STATUS_EXPIRED
olddate = o.expires
o.save()
seat_a1 = env[0].seats.create(name="A1", product=env[3], seat_guid="A1")
seat_a1 = env[0].seats.create(seat_number="A1", product=env[3], seat_guid="A1")
p = o.positions.first()
p.seat = seat_a1
p.save()
@@ -1043,7 +1043,7 @@ def test_order_mark_paid_expired_seat_taken(client, env):
o.status = Order.STATUS_EXPIRED
olddate = o.expires
o.save()
seat_a1 = env[0].seats.create(name="A1", product=env[3], seat_guid="A1")
seat_a1 = env[0].seats.create(seat_number="A1", product=env[3], seat_guid="A1")
p = o.positions.first()
p.seat = seat_a1
p.save()