From 6859e05c4f7280855a427f7ba2e82447ae8e96a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Misbach?= Date: Tue, 19 Mar 2024 14:45:51 +0100 Subject: [PATCH] simplify --- monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py b/monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py index ea01819ea8..2adaf0ac3a 100644 --- a/monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py +++ b/monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py @@ -731,7 +731,7 @@ def make_report( with scenario.check( "DSS returned a valid report ID", [dss.participant_id] ) as check: - if report_id is None or len(report_id) == 0: + if not report_id: check.record_failed( summary="Submitted DSS report returned no or empty ID", details=f"DSS responded code {report_query.status_code} but with no ID for the report",