~homeworkprod/byceps

8fcc1e4deb742ae2cffd0d3a06dc55297d7cc4ef — Jochen Kupperschmidt 2 days ago 102f9ac main
Limit scope of `make_user_with_detail_fixture` to `module` to avoid clashes
M tests/conftest.py => tests/conftest.py +1 -1
@@ 116,7 116,7 @@ def make_user(admin_app):
        user_deletion_service.delete_account(user_id, user_id, 'clean up')


@pytest.fixture(scope='session')
@pytest.fixture(scope='module')
def make_user_with_detail(admin_app):
    user_ids = set()


M tests/integration/services/shop/order/actions/conftest.py => tests/integration/services/shop/order/actions/conftest.py +2 -2
@@ 31,11 31,11 @@ def ticket_category(party):
    ticket_category_service.delete_category(category.id)


@pytest.fixture(scope='package')
@pytest.fixture(scope='module')
def orderer_user(make_user_with_detail):
    return make_user_with_detail('TicketsOrderer')


@pytest.fixture(scope='package')
@pytest.fixture(scope='module')
def orderer(orderer_user):
    return create_orderer(orderer_user)

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 +1 -1
@@ 32,7 32,7 @@ def order_admin(make_user):
    return make_user('PlacedEmailShopOrderAdmin')


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