for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
import pytest
from byceps.services.shop.article import service as article_service
from byceps.services.ticketing import (
category_service as ticket_category_service,
)
from testfixtures.shop_order import create_orderer
from tests.integration.services.shop.helpers import create_article
@pytest.fixture
def article(shop):
article = create_article(shop.id, total_quantity=10)
article_id = article.id
yield article
article_service.delete_article(article_id)
def ticket_category(party):
category = ticket_category_service.create_category(party.id, 'Deluxe')
yield category
ticket_category_service.delete_category(category.id)
def orderer(make_user_with_detail):
return create_orderer(make_user_with_detail('TicketsOrderer'))