Mercurial > p > roundup > code
view website/issues/detectors/severityauditor.py @ 8270:c70ffbc2a003
test: Override Fuzz timeout from env variable.
I have a local pytest.ini where I use:
env =
pytest_fuzz_timeout=30000
to set a 30 second timout while keeping the default 10 second for CI
because my machine is slow.
So the test now looks for that env variable and uses it if set.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 12 Jan 2025 14:14:09 -0500 |
| parents | 0942fe89e82e |
| children |
line wrap: on
line source
def init_severity(db, cl, nodeid, newvalues): """Make sure severity is set on new issues""" if 'severity' in newvalues and newvalues['severity']: return normal = db.severity.lookup('normal') newvalues['severity'] = normal def init(db): db.issue.audit('create', init_severity)
