コード例 #1
0
ファイル: models.py プロジェクト: warderus/education-backend
 def ship(self, to):
     return ShippingFactory.ship(self, to=to)
コード例 #2
0
def test_shipping_stuff_without_registered_shipping_algorithm(user):
    with pytest.raises(factory.ShipmentAlgorithmNotFound):
        factory.ship(user, to=user)
コード例 #3
0
def test_record(record, ship_record, user):
    factory.ship(record, to=user)

    ship_record.assert_called_once()
コード例 #4
0
def test_course(course, ship_course, user):
    factory.ship(course, to=user)

    ship_course.assert_called_once()
コード例 #5
0
 def ship(self, to: User, order: Optional[Order] = None):
     return ShippingFactory.ship(self, to=to, order=order)