dangerzone/tests
Alex Pyrgiotis 0b45360384
Keep newlines when reading debug logs
In d632908a44 we improved our
`replace_control_chars()` function, by replacing every control or
invalid Unicode character with a placeholder one. This change, however,
made our debug logs harder to read, since newlines were not preserved.

There are indeed various cases in which replacing newlines is wise
(e.g., in filenames), so we should keep this behavior by default.
However, specifically for reading debug logs, we add an option to keep
newlines to improve readability, at no expense to security.
2024-05-09 15:57:42 +03:00
..
gui tests: Ignore a lint error found by mypy 1.9.0 2024-04-25 16:23:39 +03:00
isolation_provider tests: Add termination tests for Dummy provider 2024-04-24 15:06:01 +03:00
test_docs Adds file formats: epub svg bmp pnm bpm ppm 2024-01-31 19:58:48 +00:00
test_docs_compressed Add page limit of 10000 2023-09-28 11:01:14 +01:00
test_docs_external Add test files for hwp/hwpx (base64 encoded) 2023-08-01 14:37:14 +01:00
test_docs_large@0068ffcb67 Replace armor guards that indicate isolated output 2023-08-22 16:11:41 +01:00
__init__.py tests: Fix text sanitization tests on Windows 2024-05-09 15:57:42 +03:00
conftest.py tests: Test our own custom QApplication 2023-07-28 12:18:58 +03:00
test_cli.py Fix printing of filenames with surrogate escapes 2024-04-25 14:11:25 +03:00
test_document.py Fix archiving the same doc twice on Windows 2024-05-09 15:57:42 +03:00
test_large_set.py Always use sys.exit when exiting the application 2024-05-09 15:57:42 +03:00
test_ocr.py Remove timeouts 2024-02-06 20:11:43 +00:00
test_settings.py Don't use pytest-mock mocker.patch as context manager 2024-05-08 15:40:14 +03:00
test_util.py Keep newlines when reading debug logs 2024-05-09 15:57:42 +03:00