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

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

    for section in sections:
        section.delete()

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

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

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

Parameters

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

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