def METHOD_NAME(sql_obs, sample_run, session):
    sql_obs.started_event(**sample_run)
    sql_obs.completed_event(stop_time=T2, result=42)
    assert session.query(Run).count() == 1
    db_run = session.query(Run).first()
    assert db_run.stop_time == T2
    assert db_run.result == 42
    assert db_run.status == "COMPLETED"