From 1c19c5fd68e86473c8f7ee4dbbc6929bb9ee8199 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Sun, 29 Nov 2020 22:20:02 +0100 Subject: address possible None value --- tests/test_verify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_verify.py') diff --git a/tests/test_verify.py b/tests/test_verify.py index 4789311..d740c06 100644 --- a/tests/test_verify.py +++ b/tests/test_verify.py @@ -45,8 +45,9 @@ def test_compare(): "skipping test {base}release/{a} {base}release/{b} -- no result defined (we think {status}, {reason})" .format(a=a, b=b, base=FATCAT_BASE_URL, status=status, reason=reason)) continue - assert status_mapping[expected_status] == status, "status: want {}, got {} for {} {}".format( - expected_status, status, a, b) + assert status_mapping[ + expected_status] == status, "status: want {}, got {} for {} {}".format( + expected_status, status, a, b) if expected_reason: assert expected_reason.lower() == reason.lower( ), "reason [{} {}]: want {}, got {}".format(a, b, expected_reason, reason) -- cgit v1.2.3