src/canvas-extractor/tests/data_generation/sections.py
def generate_sections(record_count: int) -> List[Dict]:
    """
    Generate a list of Canvas sections.

    Parameters
    ----------
    record_count : int
        The number of sections to generate.

    Returns
    -------
    List[Dict]
        A list of JSON-like section objects in a form suitable for submission to the
        Canvas section create endpoint.
    """
    assert record_count > 0, "Number of sections to generate must be greater than zero"

    logging.info(f"Generating {record_count} sections")
    sections = []
    for i in range(1, record_count + 1):
        if i % 1000 == 0:
            logging.info(f"{i} sections...")
        sections.append(
            {
                "course_section[name]": fake.catch_phrase(),
            }
        )
    return sections

    Generate a list of Canvas sections.

    Parameters
    ----------
    record_count : int
        The number of sections to generate.

    Returns
    -------
    List[Dict]
        A list of JSON-like section objects in a form suitable for submission to the
        Canvas section create endpoint.
    
Generate a list of Canvas sections.
Parameters

record_count : int
The number of sections to generate.

Returns

List[Dict]
A list of JSON-like section objects in a form suitable for submission to the
Canvas section create endpoint.
Generate a list of Canvas sections . Parameters record_count : int The number of sections to generate . Returns List [ Dict ] A list of JSON - like section objects in a form suitable for submission to the Canvas section create endpoint .
def generate_sections(record_count: int) -> List[Dict]:
    assert record_count > 0, "Number of sections to generate must be greater than zero"
    logging.info(f"Generating {record_count} sections")
    sections = []
    for i in range(1, record_count + 1):
        if i % 1000 == 0:
            logging.info(f"{i} sections...")
        sections.append(
            {
                "course_section[name]": fake.catch_phrase(),
            }
        )
    return sections
def generate_sections ( record_count : int ) -> List [ Dict ] : assert record_count > 0 , "Number of sections to generate must be greater than zero" logging . info ( f"Generating {record_count} sections" ) sections = [ ] for i in range ( 1 , record_count + 1 ) : if i % 1000 == 0 : logging . info ( f"{i} sections..." ) sections . append ( { "course_section[name]" : fake . catch_phrase ( ) , } ) return sections
Generate a list of Canvas sections.
Generate a list of Canvas sections .
"""
    Generate a list of Canvas sections.

    Parameters
    ----------
    record_count : int
        The number of sections to generate.

    Returns
    -------
    List[Dict]
        A list of JSON-like section objects in a form suitable for submission to the
        Canvas section create endpoint.
    """
record_count
int