(
tmp_path,
file_contents: AnyStr,
file_permissions: int,
expected_tuple: Tuple[str, str],
)
| 26 | ], |
| 27 | ) |
| 28 | def 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( |
nothing calls this directly
no test coverage detected