mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-20 06:40:51 +00:00
fix: prune unstarred repos from Rejected Additions in star scan
The star scan pruned unstarred repos from its untracked ledger but left their Rejected Additions lines in docs/audit-logs.md, so that list went stale after unstars. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
b2e37f102d
commit
66c764a67d
3 changed files with 33 additions and 3 deletions
|
|
@ -122,6 +122,15 @@ def test_ledger_rows_keyed_by_github_url(scan):
|
|||
assert module.LEDGER.read_text() == kept
|
||||
|
||||
|
||||
def test_unstarred_repos_are_pruned_from_rejected_additions(scan):
|
||||
module, _, run = scan
|
||||
kept = "## Rejected Additions\n- Example/Project -- 2026-10-16: kept\n- gone/* -- 2026-10-16: organization pattern\n"
|
||||
module.REGISTER.write_text(kept + "- gone/repo -- 2026-10-16: unstarred\n\n## Last Audited\n")
|
||||
|
||||
assert "pruned 1 Rejected Additions" in run("--full").err
|
||||
assert module.REGISTER.read_text() == kept + "\n## Last Audited\n"
|
||||
|
||||
|
||||
def test_parking_keeps_other_exclusions(scan):
|
||||
module, star, run = scan
|
||||
now = datetime.now(UTC)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue