From d8f3368b3cb5601211f28a464c2043a48aed94c2 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 25 May 2024 05:51:37 +0000 Subject: [PATCH] chore: fix python lint --- deltachat-rpc-client/tests/test_iroh_webxdc.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deltachat-rpc-client/tests/test_iroh_webxdc.py b/deltachat-rpc-client/tests/test_iroh_webxdc.py index cb24bc572..7afd76053 100644 --- a/deltachat-rpc-client/tests/test_iroh_webxdc.py +++ b/deltachat-rpc-client/tests/test_iroh_webxdc.py @@ -49,7 +49,7 @@ def setup_realtime_webxdc(ac1, ac2, path_to_webxdc): def setup_thread_send_realtime_data(msg, data): def thread_run(): - for i in range(10): + for _i in range(10): msg.send_webxdc_realtime_data(data) time.sleep(1) @@ -146,15 +146,13 @@ def test_no_duplicate_messages(acfactory, path_to_webxdc): ac1_webxdc_msg = ac1_ac2_chat.send_message(text="webxdc", file=path_to_webxdc) - ac1_webxdc_msg.send_webxdc_realtime_advertisement - ac2_webxdc_msg = ac2.wait_for_incoming_msg() ac2_webxdc_msg.get_snapshot().chat.accept() assert ac2_webxdc_msg.get_snapshot().text == "webxdc" # Issue a "send" call in parallel with sending advertisement. # Previously due to a bug this caused subscribing to the channel twice. - future = ac2_webxdc_msg.send_webxdc_realtime_data.future(b"foobar") + ac2_webxdc_msg.send_webxdc_realtime_data.future(b"foobar") ac2_webxdc_msg.send_webxdc_realtime_advertisement() def thread_run():