Skip to content

Commit 0b58d42

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent 8104432 commit 0b58d42

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

‎pmxbot/webhooks.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ def parse_msg():
221221
for msg_ in parse_msg():
222222
(swarm, hostname, reason), _traceback = msg_
223223
app, sep, rest = swarm.partition('-')
224-
text = (
225-
'Scheduled uptests failed for ' '{swarm}@{hostname}: {reason}'
226-
).format(**locals())
224+
text = ('Scheduled uptests failed for {swarm}@{hostname}: {reason}').format(
225+
**locals()
226+
)
227227
self._broadcast(app, text)
228228

229229
def _broadcast(self, app, msg):

‎tests/test_http.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,15 @@ def test_event_scheduled_failed(self, mock_get_channels, mock_send_to):
151151
assert mock_send_to.call_args_list == [
152152
mock.call(
153153
'chan1',
154-
(
155-
'VR: Scheduled uptests failed for MySwarm1@host: '
156-
'encoding.py failed:'
157-
),
154+
('VR: Scheduled uptests failed for MySwarm1@host: encoding.py failed:'),
158155
),
159156
mock.call(
160157
'chan1',
161-
(
162-
'VR: Scheduled uptests failed for MySwarm2@host: '
163-
'some other error...'
164-
),
158+
('VR: Scheduled uptests failed for MySwarm2@host: some other error...'),
165159
),
166160
mock.call(
167161
'chan1',
168-
('VR: Scheduled uptests failed for MySwarm3@host: ' 'bizarre bug;'),
162+
('VR: Scheduled uptests failed for MySwarm3@host: bizarre bug;'),
169163
),
170164
mock.call(
171165
'chan1',

0 commit comments

Comments
 (0)