Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -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, [])
|
||||
|
|
|
|||
Loading…
Reference in a new issue