Respond to PR feedback

This commit is contained in:
Seamus Johnston 2022-11-28 11:49:01 -06:00
parent eda5e9751b
commit 6fd29aea75
No known key found for this signature in database
GPG key ID: 2F21225985069105
6 changed files with 91 additions and 6 deletions

View file

@ -78,6 +78,21 @@ To test behind logged in pages with external tools, like `pa11y-ci` or `OWASP Za
to MIDDLEWARE in settings.py. **Remove it when you are finished testing.**
### Reducing console noise in tests
Some tests, particularly when using Django's test client, will print errors.
These errors do not indicate test failure, but can make the output hard to read.
To silence them, we have a helper function `less_console_noise`:
```python
from .common import less_console_noise
...
with less_console_noise():
# <test code goes here>
```
### Accessibility Scanning
The tool `pa11y-ci` is used to scan pages for compliance with a set of