Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/fixtures/competency/string-event-binding/SCENARIO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Producer and consumer joined by a string key

Question: What consumes the event emitted when an order completes?

Expected: connect producer and consumer through the exact `order.completed` key; do not connect the unrelated refund subscription. Missing consumers must remain explicit gaps.
3 changes: 3 additions & 0 deletions tests/fixtures/competency/string-event-binding/consumer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def register(bus, send_receipt):
bus.subscribe('order.completed', send_receipt)
bus.subscribe('order.refunded', lambda event: None)
2 changes: 2 additions & 0 deletions tests/fixtures/competency/string-event-binding/producer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def complete_order(bus, order_id):
bus.publish('order.completed', {'id': order_id})
Loading