Delta Example for v2

v1 v1 before Report Delta Example, 6 scenarios Project delta-example Commit e13e037f15df9e15ad79727d874f8457819b872c Ran File before.json Language Python 3.14.10 Runner pytest 9.2.0 Recorder pytest-given 0.7.0 to v2 v2 after Report Delta Example, 6 scenarios Project delta-example Commit f801e68a529717ed6f9f00492be6753acc62e9c0 Ran File after.json Language Python 3.14.10 Runner pytest 9.2.0 Recorder pytest-given 0.7.0

pytest-given 0.7.0 Built Builder pytest-given 0.7.0
Suite:
Guests check in at the front desk
changed ✓ passed 0ms
Given
Alice has a confirmed Booking
When
Alice gives her name at the front desk
Then
the hotel hands her a key card
Check-in receipt
Guest: Alice
Deposit: none
Check-in time: <i>15:00</i> *sharp*
Room: 101
Nights: 2
Breakfast: included
Parking: not booked
Key: key card
Guest note:
<b>*x*</b> [a](b)
Given
Alice has a confirmed Booking
When
Alice gives her name at the front desk
Then
the hotel hands her a key card
Check-in receipt
Guest: Alice
Check-in time: <i>14:00</i> *sharp*
Late check-out: 12:00
Room: 101
Nights: 2
Breakfast: included
Parking: not booked
Key: key card
Guest note:
<b>*x*</b> [a](b)
test_delta_booking.py:39
Cancelling a paid booking refunds it in full was Cancelling a paid booking refunds it
changed legacy ✓ passed 0ms
Given
Alice has a confirmed Booking she paid for
When
Alice cancels the Booking
Then
the hotel returns the Payment in full
Alice receives a cancellation email with her Invoice
Given
Alice has a confirmed Booking she paid for
When
Alice cancels the Booking
Then
the hotel returns the Payment in full
the cancellation is noted on the Invoice
test_delta_booking.py:68
A walk-in guest is offered the next free suite was A walk-in guest gets the next free room
changed mapped by hand ✓ passed 0ms
Given
Dana has one free Room
When
a walk-in Bob asks for a Room
Then
Bob gets Room 101
Given
the front desk has one free Suite
When
a walk-in Bob asks for a Suite
he accepts the offer
Suite: 101
Rate: unchanged
Then
Bob gets Suite 101
test_delta_booking.py:84
Late check-out is refused when the next guest arrives early
removed was ✓ passed 0ms
Given
the next Carol arrives at noon
When
Alice asks the Receptionist for a 2 pm check-out
Then
the request is refused
test_delta_booking.py:92
Returning guests get a loyalty discount on the invoice
added ✓ passed 0ms
Given
Alice has stayed three times before
When
the Concierge prepares her Invoice
Then
the total is reduced by 10 percent
test_delta_booking.py:98
A declined payment leaves the booking pending
changed ⊗ expected failure → ✗ failed 100ms
was expected to fail: gift cards are not wired in yet
Given
Alice has a pending Booking
booking
When
Alice submits the Payment by {payment_method} with a deposit of {deposit}
Then
the hotel declines the Payment because of {decline_reason}
the Booking stays pending
Given
Alice has a pending Booking
booking
When
Alice submits the Payment by {payment_method} with a fee of {fee}
Then
the hotel declines the Payment because of {reason}
the Booking stays pending
case ID booking payment_method deposit decline_reason amount status
~credit-card credit card 60 insufficient funds 120 ✓
booking
Guest: Alice
Amount due: 120
Status: pending
~debit-card debit card 40 expired card 80 ✓
booking
Guest: Alice
Amount due: 80
Status: pending
−bank-transfer bank transfer 150 fraud check failed 300 ✓
booking
Guest: Alice
Amount due: 300
Status: pending
~gift-card gift card partial balance 50 ⊗gift cards are not wired in yet
gift cards are not wired into payments yet
test_delta_booking.py:143: in test_payment_declined
    response = submit_payment(payment_method, amount, decline_reason)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test_delta_booking.py:114: in submit_payment
    raise NotImplementedError('gift cards are not wired into payments yet')
E   NotImplementedError: gift cards are not wired into payments yet
case ID booking payment_method +fee reasonwas decline_reason amount status
~credit credit card 12 insufficient funds 120 ✓
booking
Guest: Alice
Amount due: 120
Status: pending
~debit-card debit card 9 expired card 95 ✓
booking
Guest: Alice
Amount due: 95
Status: pending
~gift-card gift card partial balance 50 ✗
gift cards are not wired into payments yet
test_delta_booking.py:143: in test_payment_declined
    response = submit_payment(payment_method, amount, reason)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test_delta_booking.py:120: in submit_payment
    raise NotImplementedError('gift cards are not wired into payments yet')
E   NotImplementedError: gift cards are not wired into payments yet
+voucher voucher 4 voucher expired 40 ✓
booking
Guest: Alice
Amount due: 40
Status: pending
test_delta_booking.py:124
Glossary
6 terms 2 added 2 changed 2 removed
Actors
Receptionist
Staff member who works the front desk.
Dana
2 scenarios
removed
Concierge
Staff member who arranges extras for guests.
1 scenario
added
test_delta_booking.py:26
Work Objects
Suite was Room
A bookable hotel room.
Room 101
2 scenarios
A bookable hotel room.
+Suite 101
2 scenarios
changed mapped by hand
test_delta_booking.py:28
Invoice
A bill for a stay.
1 scenario
The itemised bill of a stay, settled at check-out.
2 scenarios
changed
Upgrade
A better room offered at the same rate.
1 scenario
removed
Listed scenarios: none
test_delta_booking.py:32
Activities
upgrade
Move a guest to a better room at the same rate.
1 scenario
added
Listed scenarios: none
test_delta_booking.py:32
No terms match this filter.