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

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

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

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

    Generate a list of Canvas users.

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

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

record_count : int
The number of users to generate.

Returns

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

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

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