tests: use proper urlencode function

This commit is contained in:
Frédéric Péters 2020-04-12 10:25:06 +02:00
parent c320e5471d
commit 30da696625
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ def test_simple_email_subscription(app, categories, user):
def test_simple_sms_subscription(app, categories, user, phonenumber):
payload = {'category_id': 'alerts', 'transports': ['sms']}
uuid = uuid4()
url_params = urllib.urlencode({'uuid': uuid, 'mobile': phonenumber})
url_params = urlencode({'uuid': uuid, 'mobile': phonenumber})
url = '/api/subscribe/?' + url_params
app.authorization = ('Basic', ('john.doe', 'password'))
resp = app.post_json(url, params=payload, status=200)