We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba8b114 + ad79e64 commit 8cb677aCopy full SHA for 8cb677a
elementary/monitor/api/tests/utils.py
@@ -37,9 +37,9 @@ def get_test_configuration(
37
test_params=test_params,
38
)
39
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")
+ 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"
43
return dict(
44
test_name=name,
45
timestamp_column=test_params.get("timestamp_column"),
0 commit comments