dangerzone/tests
Alex Pyrgiotis c89ef580e0
tests: Properly skip tests for isolation providers
The platform where we run our tests directly affects the isolation
providers we can choose. For instance, we cannot run Qubes tests on a
Windows/macOS platform, nor can we spawn containers in a Qubes platform,
if the `QUBES_CONVERSION` envvar has been specified.

This platform incompatibility was never an issue before, because
Dangerzone is capable of selecting the proper isolation provider under
the hood. However, with the addition of tests that target specific
isolation providers, it's possible that we may run by mistake a test
that does not apply to our platform.

To counter this, we employed `pytest.skipif()` guards around classes,
but we may omit those by mistake. Case in point, the `TestContainer`
class does not have such a guard, which means that we attempt to run
this test case on Qubes and it fails.

Add module-level guards in our isolation provider tests using pytest's
`pytest.skip("...", allow_module_level=True)` function, so that we make
such restrictions more explicit, and less easy to forget when we add a
new class.
2024-06-27 22:11:37 +03:00
..
gui Add drag and drop support for document selection 2024-06-27 11:51:41 +02:00
isolation_provider tests: Properly skip tests for isolation providers 2024-06-27 22:11:37 +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 chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00
conftest.py chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00
test_cli.py chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00
test_document.py chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00
test_large_set.py chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00
test_ocr.py Sandbox all Dangerzone document processing within gVisor. 2024-06-12 13:40:04 +03:00
test_settings.py chore(imports): remove useless imports 2024-06-05 14:19:30 +02:00
test_util.py chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00