tests: force integer division in logged error test (#36515)
This commit is contained in:
parent
a6e27b1df3
commit
b79a1f5fbc
|
@ -4670,7 +4670,7 @@ def test_backoffice_logged_errors(pub):
|
|||
jump = JumpWorkflowStatusItem()
|
||||
jump.id = '_jump'
|
||||
jump.status = 'rejected'
|
||||
jump.condition = {'type': 'python', 'value': '1/0'} # ZeroDivisionError
|
||||
jump.condition = {'type': 'python', 'value': '1//0'} # ZeroDivisionError
|
||||
st1 = workflow.possible_status[0]
|
||||
st1.items.insert(0, jump)
|
||||
jump.parent = st1
|
||||
|
@ -4712,7 +4712,7 @@ def test_backoffice_logged_errors(pub):
|
|||
assert 'error ZeroDivisionError' in resp2.text
|
||||
resp = resp2.click('Failed to evaluate condition')
|
||||
assert 'ZeroDivisionError: integer division or modulo by zero' in resp.text
|
||||
assert 'Python Expression: <code>1/0</code>' in resp.text
|
||||
assert 'Python Expression: <code>1//0</code>' in resp.text
|
||||
assert not 'Acked' in resp.text
|
||||
resp = resp.click('Ack').follow()
|
||||
assert 'Acked' in resp.text
|
||||
|
|
Loading…
Reference in New Issue