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

Function test_empty_file

tests/test_share_log.py:64–69  ·  view source on GitHub ↗
(log_file: Path, paste_url: str, max_byte: int | None)

Source from the content-addressed store, hash-verified

62@given(paste_url=urls, max_byte=max_bytes)
63@settings(max_examples=3, suppress_health_check=[HealthCheck.function_scoped_fixture])
64def test_empty_file(log_file: Path, paste_url: str, max_byte: int | None) -> None:
65 log_file.write_bytes(b'')
66
67 with patch('archinstall.lib.log.logger._path', new=log_file.parent):
68 # with patch('archinstall.lib.log.logger', _fake_logger(log_file)):
69 assert share_install_log(paste_url, max_byte) is None
70
71
72@given(paste_url=urls, resp_url=urls, max_byte=max_bytes)

Callers

nothing calls this directly

Calls 1

share_install_logFunction · 0.90

Tested by

no test coverage detected