From aeab44dca1e7a82d79b1494dec8bf4b4e1bd9cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 13 Oct 2016 17:18:17 +0200 Subject: [PATCH] misc: update to checkboxes widget changes (#13581) --- extra/modules/myspace.py | 2 +- tests/test_user_pages.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/modules/myspace.py b/extra/modules/myspace.py index 58c4f9f..3ff7050 100644 --- a/extra/modules/myspace.py +++ b/extra/modules/myspace.py @@ -707,7 +707,7 @@ class MyspaceDirectory(wcs.myspace.MyspaceDirectory): form = Form(enctype = 'multipart/form-data') form.add(CheckboxesWidget, 'themes', title=_('Announce Themes'), - value=enabled_themes, options=[(x, x) for x in options], + value=enabled_themes, options=[(x, x, x) for x in options], inline=False, required=False) form.add_submit('submit', _('Apply Changes')) diff --git a/tests/test_user_pages.py b/tests/test_user_pages.py index d293b29..fb47ead 100644 --- a/tests/test_user_pages.py +++ b/tests/test_user_pages.py @@ -178,5 +178,5 @@ def test_agenda(): app = get_app(pub) resp = app.get('/agenda/', status=200) resp = app.get('/agenda/filter') - assert 'tags$elementAdults' in resp.form.fields - assert 'calendars$elementlocal' in resp.form.fields + assert 'tags$element0' in resp.form.fields + assert 'calendars$element0' in resp.form.fields -- 2.9.3