diff tests/unit/test_plugin_xep_0272.py @ 4285:f1d0cde61af7

tests (unit): fix tests + black reformatting.
author Goffi <goffi@goffi.org>
date Sun, 14 Jul 2024 17:42:53 +0200
parents 5eb13251fd75
children
line wrap: on
line diff
--- a/tests/unit/test_plugin_xep_0272.py	Sun Jul 14 16:47:45 2024 +0200
+++ b/tests/unit/test_plugin_xep_0272.py	Sun Jul 14 17:42:53 2024 +0200
@@ -35,7 +35,6 @@
 TEST_ROOM_JID = jid.JID("room@example.com/user")
 
 
-
 @fixture
 def xep_0272(host) -> XEP_0272:
     """Fixture for initializing XEP-0272 plugin."""
@@ -64,11 +63,8 @@
         muji_elt = presence_elt.addElement((NS_MUJI, "muji"))
         muji_elt.addElement("preparing")
 
-        muji_data = {
-            "preparing_jids": set()
-        }
-        with patch.object(
-            xep_0272._muc, "get_room_user_jid", return_value=TEST_ROOM_JID) :
+        muji_data = {"preparing_jids": set()}
+        with patch.object(xep_0272._muc, "get_room_user_jid", return_value=TEST_ROOM_JID):
             with patch.object(xep_0272, "get_muji_data", return_value=muji_data):
                 with patch.object(
                     xep_0272, "try_to_finish_preparation"
@@ -83,11 +79,7 @@
         presence_elt["from"] = "room@example.com/user"
         presence_elt.addElement((NS_MUJI, "muji"))
 
-        muji_data = {
-            "done_preparing": True,
-            "preparing_jids": set(),
-            "to_call": set()
-        }
+        muji_data = {"done_preparing": True, "preparing_jids": set(), "to_call": set()}
         with patch.object(xep_0272, "get_muji_data", return_value=muji_data):
             with patch.object(
                 xep_0272, "try_to_finish_preparation"