0002-wscall-don-t-notify-by-default-19662.patch
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 |
- |