From 0f6ba1b6e3f3ff2a3a47f166e78a1a0859f575bf Mon Sep 17 00:00:00 2001 From: Pierre Fersing Date: Mon, 25 Dec 2023 11:22:58 +0100 Subject: [PATCH] Fix pre-commit check --- tests/lib/clients/03-publish-fill-inflight.py | 3 ++- tests/lib/test_03_publish_fill_inflight.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/lib/clients/03-publish-fill-inflight.py b/tests/lib/clients/03-publish-fill-inflight.py index 7ce262d1..f954dd13 100644 --- a/tests/lib/clients/03-publish-fill-inflight.py +++ b/tests/lib/clients/03-publish-fill-inflight.py @@ -4,8 +4,9 @@ from tests.paho_test import get_test_server_port, loop_until_keyboard_interrupt + def expected_payload(i: int) -> bytes: - return f"message{i}".encode("utf8") + return f"message{i}".encode() def on_message(mqttc, obj, msg): diff --git a/tests/lib/test_03_publish_fill_inflight.py b/tests/lib/test_03_publish_fill_inflight.py index c3d917f8..697c896a 100644 --- a/tests/lib/test_03_publish_fill_inflight.py +++ b/tests/lib/test_03_publish_fill_inflight.py @@ -18,6 +18,7 @@ import tests.paho_test as paho_test + def expected_payload(i: int) -> bytes: return f"message{i}"