
import pytest

from byceps.services.shop.cart.models import Cart
from byceps.services.shop.sequence import service as sequence_service
from byceps.services.shop.shop import service as shop_service

from testfixtures.shop_order import create_orderer

from tests.helpers import create_user_with_detail


@pytest.fixture
def shop(email_config):
    return shop_service.create_shop('shop-01', 'Some Shop', email_config.id)


@pytest.fixture
def orderer(normal_user):
    user = create_user_with_detail('Besteller')
    return create_orderer(user)


@pytest.fixture
def empty_cart() -> Cart:
    return Cart()


@pytest.fixture
def order_number_sequence(shop) -> None:
    sequence_service.create_order_number_sequence(shop.id, 'order-')


import pytest

from byceps.services.shop.cart.models import Cart
from byceps.services.shop.sequence import service as sequence_service
from byceps.services.shop.shop import service as shop_service

from testfixtures.shop_order import create_orderer

from tests.helpers import create_user_with_detail


@pytest.fixture
def shop(email_config):
    return shop_service.create_shop('shop-01', 'Some Shop', email_config.id)


@pytest.fixture
def orderer():
    user = create_user_with_detail('Besteller')
    return create_orderer(user)


@pytest.fixture
def empty_cart() -> Cart:
    return Cart()


@pytest.fixture
def order_number_sequence(shop) -> None:
    sequence_service.create_order_number_sequence(shop.id, 'order-')

Remove unused fixture from orderer
Remove unused fixture from orderer

  
  import pytest
  
  from byceps.services.shop.cart.models import Cart
  from byceps.services.shop.sequence import service as sequence_service
  from byceps.services.shop.shop import service as shop_service
  
  from testfixtures.shop_order import create_orderer
  
  from tests.helpers import create_user_with_detail
  
  
  @pytest.fixture
  def shop(email_config):
      return shop_service.create_shop('shop-01', 'Some Shop', email_config.id)
  
  
  @pytest.fixture
- def orderer(normal_user):
+ def orderer():
      user = create_user_with_detail('Besteller')
      return create_orderer(user)
  
  
  @pytest.fixture
  def empty_cart() -> Cart:
      return Cart()
  
  
  @pytest.fixture
  def order_number_sequence(shop) -> None:
      sequence_service.create_order_number_sequence(shop.id, 'order-')
  
Remove unused fixture from orderer
## Code Before:

import pytest

from byceps.services.shop.cart.models import Cart
from byceps.services.shop.sequence import service as sequence_service
from byceps.services.shop.shop import service as shop_service

from testfixtures.shop_order import create_orderer

from tests.helpers import create_user_with_detail


@pytest.fixture
def shop(email_config):
    return shop_service.create_shop('shop-01', 'Some Shop', email_config.id)


@pytest.fixture
def orderer(normal_user):
    user = create_user_with_detail('Besteller')
    return create_orderer(user)


@pytest.fixture
def empty_cart() -> Cart:
    return Cart()


@pytest.fixture
def order_number_sequence(shop) -> None:
    sequence_service.create_order_number_sequence(shop.id, 'order-')

## Instruction:
Remove unused fixture from orderer
## Code After:

import pytest

from byceps.services.shop.cart.models import Cart
from byceps.services.shop.sequence import service as sequence_service
from byceps.services.shop.shop import service as shop_service

from testfixtures.shop_order import create_orderer

from tests.helpers import create_user_with_detail


@pytest.fixture
def shop(email_config):
    return shop_service.create_shop('shop-01', 'Some Shop', email_config.id)


@pytest.fixture
def orderer():
    user = create_user_with_detail('Besteller')
    return create_orderer(user)


@pytest.fixture
def empty_cart() -> Cart:
    return Cart()


@pytest.fixture
def order_number_sequence(shop) -> None:
    sequence_service.create_order_number_sequence(shop.id, 'order-')
