def ship(self, to): return ShippingFactory.ship(self, to=to)
def test_shipping_stuff_without_registered_shipping_algorithm(user): with pytest.raises(factory.ShipmentAlgorithmNotFound): factory.ship(user, to=user)
def test_record(record, ship_record, user): factory.ship(record, to=user) ship_record.assert_called_once()
def test_course(course, ship_course, user): factory.ship(course, to=user) ship_course.assert_called_once()
def ship(self, to: User, order: Optional[Order] = None): return ShippingFactory.ship(self, to=to, order=order)