~homeworkprod/byceps

75700af2619e9b5f9a397db16e2a64e1b614d201 — Jochen Kupperschmidt a month ago 5f0419e
Use separate order admins for shop email tests
D tests/integration/services/shop/order/email/conftest.py => tests/integration/services/shop/order/email/conftest.py +0 -11
@@ 1,11 0,0 @@
"""
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""

import pytest


@pytest.fixture
def order_admin(make_user):
    return make_user('ShopOrderAdmin')

M tests/integration/services/shop/order/email/test_email_on_order_canceled.py => tests/integration/services/shop/order/email/test_email_on_order_canceled.py +5 -0
@@ 21,6 21,11 @@ from .base import place_order_with_items


@pytest.fixture
def order_admin(make_user):
    return make_user('CanceledEmailShopOrderAdmin')


@pytest.fixture
def customer(make_user_with_detail):
    return make_user_with_detail(
        'Versager', email_address='versager@users.test'

M tests/integration/services/shop/order/email/test_email_on_order_paid.py => tests/integration/services/shop/order/email/test_email_on_order_paid.py +5 -0
@@ 22,6 22,11 @@ from .base import place_order_with_items


@pytest.fixture
def order_admin(make_user):
    return make_user('PaidEmailShopOrderAdmin')


@pytest.fixture
def customer(make_user_with_detail):
    return make_user_with_detail(
        'Vorbild', email_address='vorbild@users.test'

M tests/integration/services/shop/order/email/test_email_on_order_placed.py => tests/integration/services/shop/order/email/test_email_on_order_placed.py +5 -0
@@ 26,6 26,11 @@ from .base import place_order_with_items


@pytest.fixture
def order_admin(make_user):
    return make_user('PlacedEmailShopOrderAdmin')


@pytest.fixture
def customer(make_user_with_detail):
    return make_user_with_detail(
        'Interessent', email_address='interessent@users.test'