def get_tests_from_run_id(run_id, session=None):
    session = session or get_session()
    query = db_utils.model_query(models.Test, session=session).join(
        models.TestRun, models.Test.id == models.TestRun.test_id).filter_by(
            run_id=run_id)
    return query.all()
Return the all tests for a specific run.
dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/db/api.py/get_tests_from_run_id