fix(tests): test_version не зависит от файла VERSION рядом с пакетом (#3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6bce80be4e
commit
548dfd4361
@ -5,8 +5,8 @@ from arm_statements.version import statements_version
|
||||
FULL_HASH = "abc1234def5678abc1234def5678abc1234def56"
|
||||
|
||||
|
||||
def test_version_absent_in_source() -> None:
|
||||
assert statements_version() is None
|
||||
def test_version_absent_file_is_none(tmp_path: Path) -> None:
|
||||
assert statements_version(tmp_path / "VERSION") is None
|
||||
|
||||
|
||||
def test_version_read_from_file(tmp_path: Path) -> None:
|
||||
|
||||
Reference in New Issue
Block a user