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

- display_banner() was only displayed in CLI mode so it makes sense for it to be in the CLI. - get_version(), was mvoed to util since it is a static function that is needed in multiple parts of the application.
19 lines
492 B
Python
19 lines
492 B
Python
import os
|
|
import platform
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
import dangerzone.global_common
|
|
|
|
|
|
@pytest.fixture
|
|
def global_common():
|
|
return dangerzone.global_common.GlobalCommon()
|
|
|
|
|
|
class TestGlobalCommon:
|
|
@pytest.mark.skipif(platform.system() != "Windows", reason="Windows-specific")
|
|
def test_get_subprocess_startupinfo(self, global_common):
|
|
startupinfo = global_common.get_subprocess_startupinfo()
|
|
self.assertIsInstance(startupinfo, subprocess.STARTUPINFO)
|