Skip to content

other_non_admin_user

Scope: function | Returns: LimeUser

The other_non_admin_user fixture provides the second user with standard permissions.

Default implementation

By default, other_non_admin_user fetches the user with username standard_2 from the test database:

@pytest.fixture
def other_non_admin_user(user_repository) -> LimeUser:
    return user_repository.get_by_username("standard_2")

Customization

Override other_non_admin_user. Use the create_user fixture to create a fresh user for the test:

@pytest.fixture
def other_non_admin_user(create_user):
    return create_user(
        username="another_user",
        full_name="Another User",
        _return_entity=True,
    )