src/canvas-extractor/tests/data_generation/assignments.py
def rollback_loaded_assignments(assignments: List[Assignment]):
    """
    Delete already loaded assignments via the Canvas API.
    **** Used during testing of the load functionality ****

    Parameters
    ----------
    assignments: List[Assignment]
        A list of Assignment SDK objects from a successful load operation
    """
    logger.info(
        "**** Rolling back %s assignments via Canvas API - for testing purposes",
        len(assignments),
    )

    for assignment in assignments:
        assignment.delete()

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

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

    Parameters
    ----------
    assignments: List[Assignment]
        A list of Assignment SDK objects from a successful load operation
    
Delete already loaded assignments via the Canvas API.
Used during testing of the load functionality

Parameters

List[Assignment]
A list of Assignment SDK objects from a successful load operation
Delete already loaded assignments via the Canvas API . Used during testing of the load functionality Parameters List [ Assignment ] A list of Assignment SDK objects from a successful load operation
def rollback_loaded_assignments(assignments: List[Assignment]):
    logger.info(
        "**** Rolling back %s assignments via Canvas API - for testing purposes",
        len(assignments),
    )
    for assignment in assignments:
        assignment.delete()
    logger.info("**** Successfully deleted %s assignments", len(assignments))
def rollback_loaded_assignments ( assignments : List [ Assignment ] ) : logger . info ( "**** Rolling back %s assignments via Canvas API - for testing purposes" , len ( assignments ) , ) for assignment in assignments : assignment . delete ( ) logger . info ( "**** Successfully deleted %s assignments" , len ( assignments ) )
Delete already loaded assignments via the Canvas API.
Delete already loaded assignments via the Canvas API .
"""
    Delete already loaded assignments via the Canvas API.
    **** Used during testing of the load functionality ****

    Parameters
    ----------
    assignments: List[Assignment]
        A list of Assignment SDK objects from a successful load operation
    """
assignments
List[Assignment]