MCPcopy
hub / github.com/freedomofpress/dangerzone / test_output_dir_default_is_none

Function test_output_dir_default_is_none

tests/test_settings.py:111–115  ·  view source on GitHub ↗

The output_dir setting defaults to None.

(tmp_path: Path, mocker: MockerFixture)

Source from the content-addressed store, hash-verified

109
110
111def test_output_dir_default_is_none(tmp_path: Path, mocker: MockerFixture) -> None:
112 """The output_dir setting defaults to None."""
113 mocker.patch("dangerzone.settings.get_config_dir", return_value=tmp_path)
114 settings = Settings()
115 assert settings.get("output_dir") is None
116
117
118def test_output_dir_persists_across_restarts(

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
SettingsClass · 0.90

Tested by

no test coverage detected