From 4b25459700034aad0d7b37c742bd1c2a0dba4ebe Mon Sep 17 00:00:00 2001 From: Attila Szegedi Date: Mon, 19 Aug 2024 14:14:14 +0200 Subject: [PATCH] Allow for string values in product enablement as profiling exposes a string value ("true"/"false"/"auto") --- tests/test_telemetry.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_telemetry.py b/tests/test_telemetry.py index 446918c6a0e..686dea2a6d4 100644 --- a/tests/test_telemetry.py +++ b/tests/test_telemetry.py @@ -623,9 +623,10 @@ def test_app_started_product_disabled(self): ), f"Product information was expected in app-started event, but was missing in {data['log_filename']}" for product, details in payload["products"].items(): - assert ( - details.get("enabled") is False - ), f"Product information expected to indicate {product} is disabled, but found enabled" + assert details.get("enabled") in [ + False, + "false", + ], f"Product information expected to indicate {product} is disabled, but found enabled" if not data_found: raise ValueError("No telemetry data to validate on")