~homeworkprod/byceps

92c503914660945a1bda71714ab5b9657ccc70dc — Jochen Kupperschmidt a month ago 088a90e
Use unique test user names
M tests/integration/blueprints/user/test_views_email_address_confirmation.py => tests/integration/blueprints/user/test_views_email_address_confirmation.py +2 -2
@@ 15,12 15,12 @@ from tests.helpers import http_client

@pytest.fixture(scope='module')
def user1(make_user):
    return make_user('User1', initialized=False)
    return make_user('EAC-User1', initialized=False)


@pytest.fixture(scope='module')
def user2(make_user):
    return make_user('User2', initialized=False)
    return make_user('EAC-User2', initialized=False)


@pytest.fixture

M tests/integration/services/authentication/test_update_password_hash.py => tests/integration/services/authentication/test_update_password_hash.py +1 -1
@@ 10,7 10,7 @@ from byceps.services.user import event_service

def test_update_password_hash(party_app, admin_user, make_user):
    admin_id = admin_user.id
    user_id = make_user('PasswordUpdater').id
    user_id = make_user('PasswordHashUpdater').id

    password_service.create_password_hash(user_id, 'InitialPassw0rd')


M tests/integration/services/authorization/test_deassign_all_roles_from_user.py => tests/integration/services/authorization/test_deassign_all_roles_from_user.py +2 -2
@@ 30,12 30,12 @@ def test_deassign_all_roles_from_user(admin_app, user1, user2, roles):

@pytest.fixture
def user1(make_user):
    return make_user('User1')
    return make_user('UserWithRoles1')


@pytest.fixture
def user2(make_user):
    return make_user('User2')
    return make_user('UserWithRoles2')


@pytest.fixture

M tests/unit/services/ticketing/test_models.py => tests/unit/services/ticketing/test_models.py +3 -3
@@ 15,9 15,9 @@ from testfixtures.user import create_user
ANY_BUNDLE_ID = UUID('4138fcfb-cc18-45c0-aede-d49a8e279885')


user1 = create_user('User1')
user2 = create_user('User2')
user3 = create_user('User3')
user1 = create_user('TicketUser1')
user2 = create_user('TicketUser2')
user3 = create_user('TicketUser3')


@pytest.mark.parametrize('bundle_id, expected', [