Skip to content

Commit

Permalink
Pre-commit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor-Avila committed Jun 26, 2024
1 parent f535a9f commit 27fbc8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/preset_cli/api/clients/dbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,9 @@ def get_og_metrics(self, job_id: int) -> List[MetricSchema]:
)

metric_schema = MetricSchema()
metrics = [metric_schema.load(metric) for metric in payload["data"]["job"]["metrics"]]
metrics = [
metric_schema.load(metric) for metric in payload["data"]["job"]["metrics"]
]

return metrics

Expand Down
6 changes: 5 additions & 1 deletion tests/api/clients/dbt_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,11 @@ def test_dbt_client_get_og_metrics(mocker: MockerFixture) -> None:
"type": "count",
"sql": "customer_id",
"filters": [
{"field": "number_of_orders", "operator": ">", "value": "0"},
{
"field": "number_of_orders",
"operator": ">",
"value": "0",
},
],
"dependsOn": ["model.jaffle_shop.customers"],
"description": "The number of paid customers using the product",
Expand Down

0 comments on commit 27fbc8d

Please sign in to comment.