
from byceps.services.shop.order.models.order import Order
from byceps.services.shop.order.models.orderer import Orderer
from byceps.services.shop.order import service
from byceps.services.shop.order.transfer.models import PaymentMethod


ANY_ORDER_NUMBER = 'AEC-03-B00074'


def create_orderer(user):
    return Orderer(
        user.id,
        user.detail.first_names,
        user.detail.last_name,
        user.detail.country,
        user.detail.zip_code,
        user.detail.city,
        user.detail.street)


def create_order(shop_id, placed_by, *, order_number=ANY_ORDER_NUMBER,
                 payment_method=PaymentMethod.bank_transfer,
                 shipping_required=False):
    order = Order(
        shop_id,
        order_number,
        placed_by.id,
        placed_by.detail.first_names,
        placed_by.detail.last_name,
        placed_by.detail.country,
        placed_by.detail.zip_code,
        placed_by.detail.city,
        placed_by.detail.street,
        payment_method,
    )

    order.shipping_required = shipping_required

    return order


def create_order_item(order, article, quantity):
    return service._add_article_to_order(order, article, quantity)


from byceps.services.shop.order.models.order import Order
from byceps.services.shop.order.models.orderer import Orderer
from byceps.services.shop.order.transfer.models import PaymentMethod


ANY_ORDER_NUMBER = 'AEC-03-B00074'


def create_orderer(user):
    return Orderer(
        user.id,
        user.detail.first_names,
        user.detail.last_name,
        user.detail.country,
        user.detail.zip_code,
        user.detail.city,
        user.detail.street)


def create_order(shop_id, placed_by, *, order_number=ANY_ORDER_NUMBER,
                 payment_method=PaymentMethod.bank_transfer,
                 shipping_required=False):
    order = Order(
        shop_id,
        order_number,
        placed_by.id,
        placed_by.detail.first_names,
        placed_by.detail.last_name,
        placed_by.detail.country,
        placed_by.detail.zip_code,
        placed_by.detail.city,
        placed_by.detail.street,
        payment_method,
    )

    order.shipping_required = shipping_required

    return order

Remove unused test fixture `create_order_item`
Remove unused test fixture `create_order_item`

  
  from byceps.services.shop.order.models.order import Order
  from byceps.services.shop.order.models.orderer import Orderer
- from byceps.services.shop.order import service
  from byceps.services.shop.order.transfer.models import PaymentMethod
  
  
  ANY_ORDER_NUMBER = 'AEC-03-B00074'
  
  
  def create_orderer(user):
      return Orderer(
          user.id,
          user.detail.first_names,
          user.detail.last_name,
          user.detail.country,
          user.detail.zip_code,
          user.detail.city,
          user.detail.street)
  
  
  def create_order(shop_id, placed_by, *, order_number=ANY_ORDER_NUMBER,
                   payment_method=PaymentMethod.bank_transfer,
                   shipping_required=False):
      order = Order(
          shop_id,
          order_number,
          placed_by.id,
          placed_by.detail.first_names,
          placed_by.detail.last_name,
          placed_by.detail.country,
          placed_by.detail.zip_code,
          placed_by.detail.city,
          placed_by.detail.street,
          payment_method,
      )
  
      order.shipping_required = shipping_required
  
      return order
  
- 
- def create_order_item(order, article, quantity):
-     return service._add_article_to_order(order, article, quantity)
- 
Remove unused test fixture `create_order_item`
## Code Before:

from byceps.services.shop.order.models.order import Order
from byceps.services.shop.order.models.orderer import Orderer
from byceps.services.shop.order import service
from byceps.services.shop.order.transfer.models import PaymentMethod


ANY_ORDER_NUMBER = 'AEC-03-B00074'


def create_orderer(user):
    return Orderer(
        user.id,
        user.detail.first_names,
        user.detail.last_name,
        user.detail.country,
        user.detail.zip_code,
        user.detail.city,
        user.detail.street)


def create_order(shop_id, placed_by, *, order_number=ANY_ORDER_NUMBER,
                 payment_method=PaymentMethod.bank_transfer,
                 shipping_required=False):
    order = Order(
        shop_id,
        order_number,
        placed_by.id,
        placed_by.detail.first_names,
        placed_by.detail.last_name,
        placed_by.detail.country,
        placed_by.detail.zip_code,
        placed_by.detail.city,
        placed_by.detail.street,
        payment_method,
    )

    order.shipping_required = shipping_required

    return order


def create_order_item(order, article, quantity):
    return service._add_article_to_order(order, article, quantity)

## Instruction:
Remove unused test fixture `create_order_item`
## Code After:

from byceps.services.shop.order.models.order import Order
from byceps.services.shop.order.models.orderer import Orderer
from byceps.services.shop.order.transfer.models import PaymentMethod


ANY_ORDER_NUMBER = 'AEC-03-B00074'


def create_orderer(user):
    return Orderer(
        user.id,
        user.detail.first_names,
        user.detail.last_name,
        user.detail.country,
        user.detail.zip_code,
        user.detail.city,
        user.detail.street)


def create_order(shop_id, placed_by, *, order_number=ANY_ORDER_NUMBER,
                 payment_method=PaymentMethod.bank_transfer,
                 shipping_required=False):
    order = Order(
        shop_id,
        order_number,
        placed_by.id,
        placed_by.detail.first_names,
        placed_by.detail.last_name,
        placed_by.detail.country,
        placed_by.detail.zip_code,
        placed_by.detail.city,
        placed_by.detail.street,
        payment_method,
    )

    order.shipping_required = shipping_required

    return order
