Reformatted code base using black.

This commit is contained in:
Goffi 2024-06-19 18:44:57 +02:00
commit 53fdaa9d09

View file

@ -169,9 +169,9 @@ class RadiocolTest(helpers.SatTestCase):
sent = self.host.get_sent_message(0)
attrs["sender"] = self.plugin_0045.get_nick(0, profile_index)
radiocol_elt = next(domish.generateElementsNamed(sent.elements(), "radiocol"))
preload_elt = next(domish.generateElementsNamed(
radiocol_elt.elements(), "preload"
))
preload_elt = next(
domish.generateElementsNamed(radiocol_elt.elements(), "preload")
)
attrs["timestamp"] = preload_elt["timestamp"] # we could not guess it...
content = "<preload xmlns='' %s/>" % " ".join(
["%s='%s'" % (attr, attrs[attr]) for attr in attrs]
@ -347,7 +347,9 @@ class RadiocolTest(helpers.SatTestCase):
)
elif elt.name == "no_upload":
self.host.bridge.expect_call(
"radiocol_no_upload", ROOM_JID.full(), Const.PROFILE[profile_index]
"radiocol_no_upload",
ROOM_JID.full(),
Const.PROFILE[profile_index],
)
sync_data[nick]
self._room_game_cmd(sent, [])