esirius: unset queryset sent to PUT WS (#52691)
This commit is contained in:
parent
42b061105f
commit
e336f45111
|
@ -213,7 +213,7 @@ class ESirius(BaseResource, HTTPResource):
|
|||
post_data['user']['address'] = {}
|
||||
|
||||
post_data['codeRDV'] = id
|
||||
response = self.request('appointments/%s/' % id, method='PUT', json=post_data)
|
||||
response = self.request('appointments', method='PUT', json=post_data)
|
||||
return {'data': {'id': id, 'updated': True}}
|
||||
|
||||
@endpoint(
|
||||
|
|
|
@ -227,7 +227,7 @@ def test_create_appointment_error_500(app, connector):
|
|||
def test_update_appointment(app, connector):
|
||||
endpoint = get_endpoint('update-appointment')
|
||||
|
||||
@httmock.urlmatch(netloc='esirius.example.net', path='/appointments/94PEP4/', method='PUT')
|
||||
@httmock.urlmatch(netloc='esirius.example.net', path='/appointments', method='PUT')
|
||||
def esirius_mock(url, request):
|
||||
assert 'codeRDV' in json.loads(request.body).keys()
|
||||
return httmock.response(200, b'')
|
||||
|
@ -244,7 +244,7 @@ def test_update_appointment_error(app, connector):
|
|||
payload = CREATE_APPOINTMENT_PAYLOAD
|
||||
payload['idSys'] = 42
|
||||
|
||||
@httmock.urlmatch(netloc='esirius.example.net', path='/appointments/94PEP4/', method='PUT')
|
||||
@httmock.urlmatch(netloc='esirius.example.net', path='/appointments', method='PUT')
|
||||
def esirius_mock(url, request):
|
||||
raise ResourceWarning
|
||||
|
||||
|
|
Loading…
Reference in New Issue