Beispiel #1
0
def do_delivery_fulfilment(delivery_id: str) -> Union[Delivery, bool]:
    """consumes the value of the delivery_id column of a delivery and
produces the Delivery if this succeeds, and False otherwise. As a side-effect, processes
all of the requests and offers associated with the delivery.

    """
    interface = MABD()
    return interface.do_delivery_fulfilment(delivery_id)
Beispiel #2
0
def test_MABD_do_delivery_fulfilment_returns_false_if_delivery_does_not_exist():
    mabd = MABD()
    result = mabd.do_delivery_fulfilment(3002)
    assert result == False