From 30da6966250cd78f56acfc9ea28ca16c692cd22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 12 Apr 2020 10:25:06 +0200 Subject: [PATCH] tests: use proper urlencode function --- tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_api.py b/tests/test_api.py index 840fdf1..e1c080c 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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)