src/canvas-extractor/tests/data_generation/users.py
def rollback_loaded_users(account: Account, users: List[User]):
    """
    Delete already loaded users via the Canvas API.
    **** Used during testing of the load functionality ****

    Parameters
    ----------
    account : Account
        An Account SDK object
    users: List[User]
        A list of User SDK objects from a successful user load operation
    """
    logger.info(
        "**** Rolling back %s users via Canvas API - for testing purposes",
        len(users),
    )

    for user in users:
        account.delete_user(user)

    logger.info("**** Successfully deleted %s users", len(users))

    Delete already loaded users via the Canvas API.
    **** Used during testing of the load functionality ****

    Parameters
    ----------
    account : Account
        An Account SDK object
    users: List[User]
        A list of User SDK objects from a successful user load operation
    
Delete already loaded users via the Canvas API.
Used during testing of the load functionality

Parameters

account : Account
An Account SDK object
users: List[User]
A list of User SDK objects from a successful user load operation
Delete already loaded users via the Canvas API . Used during testing of the load functionality Parameters account : Account An Account SDK object users : List [ User ] A list of User SDK objects from a successful user load operation
def rollback_loaded_users(account: Account, users: List[User]):
    logger.info(
        "**** Rolling back %s users via Canvas API - for testing purposes",
        len(users),
    )
    for user in users:
        account.delete_user(user)
    logger.info("**** Successfully deleted %s users", len(users))
def rollback_loaded_users ( account : Account , users : List [ User ] ) : logger . info ( "**** Rolling back %s users via Canvas API - for testing purposes" , len ( users ) , ) for user in users : account . delete_user ( user ) logger . info ( "**** Successfully deleted %s users" , len ( users ) )
Delete already loaded users via the Canvas API.
Delete already loaded users via the Canvas API .
"""
    Delete already loaded users via the Canvas API.
    **** Used during testing of the load functionality ****

    Parameters
    ----------
    account : Account
        An Account SDK object
    users: List[User]
        A list of User SDK objects from a successful user load operation
    """
account
Account
users
List[User]