Skip to content

Commit

Permalink
Fix test config defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
elongl committed Nov 14, 2024
1 parent ba8b114 commit ad79e64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elementary/monitor/api/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def get_test_configuration(
test_params=test_params,
)
else:
time_bucket_configuration = test_params.get("time_bucket", {})
time_bucket_count = time_bucket_configuration.get("count", 1)
time_bucket_period = time_bucket_configuration.get("period", "day")
time_bucket_configuration = test_params.get("time_bucket") or {}
time_bucket_count = time_bucket_configuration.get("count") or 1
time_bucket_period = time_bucket_configuration.get("period") or "day"
return dict(
test_name=name,
timestamp_column=test_params.get("timestamp_column"),
Expand Down

0 comments on commit ad79e64

Please sign in to comment.