Fix failing TestSlackWebhookHook (#9260)
`conn_type` was enforced by #9187
This commit is contained in:
Родитель
72c7ba9475
Коммит
f00dde64f5
|
@ -60,16 +60,19 @@ class TestSlackWebhookHook(unittest.TestCase):
|
|||
db.merge_conn(
|
||||
Connection(
|
||||
conn_id='slack-webhook-default',
|
||||
conn_type='http',
|
||||
extra='{"webhook_token": "your_token_here"}')
|
||||
)
|
||||
db.merge_conn(
|
||||
Connection(
|
||||
conn_id='slack-webhook-url',
|
||||
conn_type='http',
|
||||
host='https://hooks.slack.com/services/T000/B000/XXX')
|
||||
)
|
||||
db.merge_conn(
|
||||
Connection(
|
||||
conn_id='slack-webhook-host',
|
||||
conn_type='http',
|
||||
host='https://hooks.slack.com/services/T000/')
|
||||
)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче