tests: check PATCH/PUT methods for real

This commit is contained in:
Frédéric Péters 2018-11-26 13:45:03 +01:00
parent 08ea74c03c
commit fa4fb4e355
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ def test_webservice_post_put_patch(http_requests, pub):
for method in ('POST', 'PUT', 'PATCH'):
wscall = NamedWsCall()
wscall.name = 'Hello world'
wscall.request = {'method': 'PUT', 'post_data': {'toto': 'coin'},
wscall.request = {'method': method, 'post_data': {'toto': 'coin'},
'url': 'http://remote.example.net/json'}
try:
wscall.call()