# create\_test

```python
dbnl.experimental.create_test(
    *,
    test_spec_dict: Dict[str, Any]
) -> Dict[str, Any]:
```

## Parameters

<table><thead><tr><th width="194">Arguments</th><th>Description</th></tr></thead><tbody><tr><td><code>test_spec_dict</code></td><td>A dictionary of the expected Test Spec schema</td></tr></tbody></table>

## Returns

<table><thead><tr><th width="194">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>Dict[str, Any]</code></td><td>The JSON dict of the created Test Spec object. The return JSON will contain the <code>id</code> of the Test Spec.</td></tr></tbody></table>

#### Test Spec JSON Schema

```json
{
  "project_id": string,

  // Test data
  "name": string (project-unique),
  "description": string?,
  "statistic_name": string,
  "statistic_params": map[string, any],
  "statistic_inputs": list[
    {
      "select_query_template": {
        "select": string // a column or a function on column(s)
      }
    }
  ],
  "assertion": {
    "name": string,
    "params": map[string, any]
  },
  "tag_ids": string[]?
}

```
