mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00

Isolation provider tests done in tests/test_base.py and had pytest.mark.parameterize() for each isolation provider. This logic would not work well when we had test that diverge. We could have marked each one as compatible with one provider or another, but in the end it turned out to be better to have the common ones in a base class and the divergent ones in each. NOTE: this has a strange side-effect: inherited test classes need to have imports for all of the fixtures even if they are not explictly used
15 lines
268 B
Python
15 lines
268 B
Python
import pytest
|
|
|
|
from dangerzone.isolation_provider.qubes import Qubes
|
|
|
|
from .. import sanitized_text, uncommon_text
|
|
from .base import IsolationProviderTest
|
|
|
|
|
|
@pytest.fixture
|
|
def provider() -> Qubes:
|
|
return Qubes()
|
|
|
|
|
|
class TestQubes(IsolationProviderTest):
|
|
pass
|