Projet

Général

Profil

0002-wscall-don-t-notify-by-default-19662.patch

Lauréline Guérin, 18 septembre 2020 10:50

Télécharger (1,52 ko)

Voir les différences:

Subject: [PATCH 2/2] wscall: don't notify by default (#19662)

 tests/test_wscalls_admin_pages.py | 2 +-
 wcs/admin/wscalls.py              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tests/test_wscalls_admin_pages.py
72 72
    # go to the page and add a webservice call
73 73
    resp = app.get('/backoffice/settings/wscalls/')
74 74
    resp = resp.click('New webservice call')
75
    assert resp.form['notify_on_errors'].value == 'yes'
75
    assert resp.form['notify_on_errors'].value is None
76 76
    assert resp.form['record_on_errors'].value == 'yes'
77 77
    resp.form['name'] = 'a new webservice call'
78 78
    resp.form['description'] = 'description'
wcs/admin/wscalls.py
56 56
            CheckboxWidget,
57 57
            'notify_on_errors',
58 58
            title=_('Notify on errors'),
59
            value=self.wscall.notify_on_errors if self.wscall.slug else True)
59
            value=self.wscall.notify_on_errors)
60 60
        form.add(
61 61
            CheckboxWidget,
62 62
            'record_on_errors',
63
-