def get_test_runs_by_test_id(test_id, session=None):
    session = session or get_session()
    test_runs = db_utils.model_query(models.TestRun,
                                     session=session).filter_by(
        test_id=test_id).all()
    return test_runs
Get all test runs for a specific test.
dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/db/api.py/get_test_runs_by_test_id