tests/bot_test.py
def populate_db(engine):
    """
    Populates the database for tests that need existing course data.
    
    * engine - SQLAlchemy engine object
    """

    with Session(engine) as s:
        course = database.Course(
            code="7357",
            message_id=TEST_MESSAGE,
            role_id=1
        )
        s.add(course)
        s.commit()

    Populates the database for tests that need existing course data.
    
    * engine - SQLAlchemy engine object
    
Populates the database for tests that need existing course data.
engine - SQLAlchemy engine object
Populates the database for tests that need existing course data . engine - SQLAlchemy engine object
def populate_db(engine):
    with Session(engine) as s:
        course = database.Course(
            code="7357",
            message_id=TEST_MESSAGE,
            role_id=1
        )
        s.add(course)
        s.commit()
def populate_db ( engine ) : with Session ( engine ) as s : course = database . Course ( code = "7357" , message_id = TEST_MESSAGE , role_id = 1 ) s . add ( course ) s . commit ( )
Populates the database for tests that need existing course data.
Populates the database for tests that need existing course data .
"""
    Populates the database for tests that need existing course data.
    
    * engine - SQLAlchemy engine object
    """
engine