dangerzone/tests
Alex Pyrgiotis e11aaec3ac
Always use sys.exit when exiting the application
The `exit()` [1] function is not necessarily present in every Python
environment, as it's added by the `site` module. Also, this function is
"[...] useful for the interactive interpreter shell and should not be
used in programs"

For this reason, we replace all such occurrences with `sys.exit()` [2],
which is the canonical function to exit Python programs.

[1]: https://docs.python.org/3/library/constants.html#exit
[2]: https://docs.python.org/3/library/sys.html#sys.exit
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 Revert "Add non-blocking read utility" 2024-02-06 19:42:41 +00:00