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

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

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

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

    Generate a list of Canvas assignments.

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

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

record_count : int
The number of assignments to generate.

Returns

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

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

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