pytest-given
pytest 9.0.3 · pytest-given 0.1.0 ·
Term:
Guest books an available room
✓ passed 0ms
Given
the Room is available
When
Guest books the Room
Then
the Guest receives a Confirmation
the Cancellation Policy applies to the Room
Guest cannot book an unavailable room
✓ passed 0ms
Given
no Room is available
When
Guest books a Room
Then
no Confirmation is issued
the Cancellation Policy does not apply
Book a Room
3 activities · 2 scenarios
1
Guestbrowseslistings
2
GuestbooksRoom
2 scenarios
3
GuestreceivesConfirmation
1 scenario
Scenarios
Guest books an available room
✓ passed
Covers: 2 3
Guest cannot book an unavailable room
✓ passed
Covers: 2
Glossary
6 terms · 1 actor · 2 work objects · 1 verb · 2 uncategorized
Actors 1 term
Guest
A person making a room reservation.
1 story · 2 scenarios
Work Objects 2 terms
Room
A bookable hotel room.
1 story · 2 scenarios
Confirmation
A notification acknowledging a successful reservation.
1 story · 2 scenarios
Verbs 1 term
book
Reserve a room for a given stay.
1 story · 2 scenarios
Uncategorized 2 terms
Cancellation Policy
The rules governing how and when a booking may be cancelled.
Enforced by the CancellationPolicy type.
2 scenarios
Overbooking
Accepting more reservations than there are rooms available.