mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-24 09:55:12 +00:00
chore(release): promote 6.0.0 to main
This commit is contained in:
@@ -32,7 +32,7 @@ def test_covers_the_framework_dirs_only() -> None:
|
||||
assert not any(rel.startswith("services/") for rel in rels)
|
||||
assert not any("__pycache__" in rel for rel in rels)
|
||||
assert all(rel.endswith(".py") for rel in rels)
|
||||
assert rels == sorted(rels) # order must not depend on the filesystem
|
||||
assert rels == sorted(rels)
|
||||
|
||||
|
||||
def test_content_changes_the_hash() -> None:
|
||||
@@ -70,5 +70,5 @@ def test_unreadable_source_yields_empty_string() -> None:
|
||||
def test_unwalkable_source_yields_empty_string(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
"""A dir os.walk cannot enter must yield "", not a valid-looking hash of fewer files."""
|
||||
(tmp_path / "__main__.py").write_bytes(b"")
|
||||
monkeypatch.setattr(unshackle.core, "_PKG", tmp_path)
|
||||
monkeypatch.setattr(unshackle.core, "PKG", tmp_path)
|
||||
assert code_hash() == ""
|
||||
|
||||
Reference in New Issue
Block a user