get_tests

Retrieve all Tests executed in the given Test Session.

dbnl.experimental.get_tests(
    *,
    test_session_id: str,
) -> List[Dict[str, Any]]:

Parameters

Arguments
Description

test_session_id

The Test Session ID associated with all the tests.

Returns

Type
Description

List[Dict[str, Any]]

A list of Test JSONs

Test JSON Schema

{
  // Test metadata
  "id": string,
  "org_id": string,
  "created_at": timestamp,
  "updated_at": timestamp,

  "test_session_id": string,

  // Test data
  "author_id": string,
  "value": any?,
  "failure": string?,
  "status": enum(PENDING, RUNNING, PASSED, FAILED),
  "started_at": timestamp?,
  "completed_at": timestamp?,

  // Test Spec data
  "test_spec_id": id,
  "name": string,
  "description": string?,
  "statistic_name": string,
  "statistic_params": map[string, any],
  "assertion": {
    "name": string,
    "params": map[string, any]
    "status": enum(...),
    "failure": string?
  },
  "statistic_inputs": list[
    {
      "select_query_template": {
        "select": string 
      }
    }
  ],
  "tag_ids": string[]?,
}

Last updated

Was this helpful?