MCPcopy
hub / github.com/GitGuardian/ggshield / test_parse_os_release

Function test_parse_os_release

tests/unit/utils/test_os.py:28–38  ·  view source on GitHub ↗
(
    tmp_path,
    file_contents: AnyStr,
    file_permissions: int,
    expected_tuple: Tuple[str, str],
)

Source from the content-addressed store, hash-verified

26 ],
27)
28def test_parse_os_release(
29 tmp_path,
30 file_contents: AnyStr,
31 file_permissions: int,
32 expected_tuple: Tuple[str, str],
33):
34 file = tmp_path / "os-release"
35
36 file.write_text(file_contents)
37 file.chmod(file_permissions)
38 assert parse_os_release(file) == expected_tuple
39
40
41@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

parse_os_releaseFunction · 0.90

Tested by

no test coverage detected