Skip to content

Commit 8cb677a

Browse files
authored
Merge pull request #1748 from elementary-data/ele-3809-fix-test-config-defaults
Fix test config defaults.
2 parents ba8b114 + ad79e64 commit 8cb677a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elementary/monitor/api/tests/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def get_test_configuration(
3737
test_params=test_params,
3838
)
3939
else:
40-
time_bucket_configuration = test_params.get("time_bucket", {})
41-
time_bucket_count = time_bucket_configuration.get("count", 1)
42-
time_bucket_period = time_bucket_configuration.get("period", "day")
40+
time_bucket_configuration = test_params.get("time_bucket") or {}
41+
time_bucket_count = time_bucket_configuration.get("count") or 1
42+
time_bucket_period = time_bucket_configuration.get("period") or "day"
4343
return dict(
4444
test_name=name,
4545
timestamp_column=test_params.get("timestamp_column"),

0 commit comments

Comments
 (0)