tests: re-enable a test on orange connector (#63192)
This commit is contained in:
parent
f6e1dde2dd
commit
686db642f5
|
@ -31,7 +31,7 @@ JSON_HEADERS = {'content-type': 'application/json'}
|
|||
PAYLOAD = {
|
||||
'message': 'hello',
|
||||
'from': 'john',
|
||||
'to': ['+33688888888', '+33677777777'],
|
||||
'to': ['+33677777777', '+33688888888'],
|
||||
}
|
||||
|
||||
|
||||
|
@ -60,8 +60,8 @@ def response_diffusion_ok(url, request):
|
|||
request_body = json.loads(force_str(request.body))
|
||||
assert request_body['smsParam']['body'] == PAYLOAD['message']
|
||||
assert 'senderName' not in request_body['smsParam'].keys()
|
||||
assert '33688888888' in request_body['msisdns'][0]
|
||||
assert '33677777777' in request_body['msisdns'][1]
|
||||
assert '33677777777' in request_body['msisdns'][0]
|
||||
assert '33688888888' in request_body['msisdns'][1]
|
||||
content = json.dumps({'status': "I'm ok"})
|
||||
return httmock.response(201, content, JSON_HEADERS)
|
||||
|
||||
|
@ -186,7 +186,6 @@ def test_diffusion(app, connector):
|
|||
orange.diffusion('my_token', 'gid2', PAYLOAD['to'], PAYLOAD['message'], PAYLOAD['from'])
|
||||
|
||||
|
||||
@pytest.mark.xfail(run=False)
|
||||
def test_send_msg(app, connector):
|
||||
url = '/%s/%s/send/' % (connector.get_connector_slug(), connector.slug)
|
||||
assert Job.objects.count() == 0
|
||||
|
|
Loading…
Reference in New Issue