MCPcopy Create free account
hub / github.com/archlinux/archinstall / test_file_not_found

Function test_file_not_found

tests/test_share_log.py:50–59  ·  view source on GitHub ↗
(
	tmp_path: Path,
	sub_path: Path,
	paste_url: str,
	max_byte: int | None,
)

Source from the content-addressed store, hash-verified

48@given(paste_url=urls, max_byte=max_bytes, sub_path=random_paths)
49@settings(max_examples=3, suppress_health_check=[HealthCheck.function_scoped_fixture])
50def test_file_not_found(
51 tmp_path: Path,
52 sub_path: Path,
53 paste_url: str,
54 max_byte: int | None,
55) -> None:
56 missing_log = tmp_path / sub_path / 'install.log'
57
58 with patch('archinstall.lib.log.logger._path', new=missing_log):
59 assert share_install_log(paste_url, max_byte) is None
60
61
62@given(paste_url=urls, max_byte=max_bytes)

Callers

nothing calls this directly

Calls 1

share_install_logFunction · 0.90

Tested by

no test coverage detected