mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-20 06:40:51 +00:00
feat: link repos in the star-scan ledger with full GitHub URLs
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
66e177d983
commit
fc0fda7fa7
3 changed files with 22 additions and 9 deletions
|
|
@ -111,6 +111,17 @@ def test_unstarred_repos_are_pruned_from_ledger(scan):
|
|||
assert module.LEDGER.read_text() == kept
|
||||
|
||||
|
||||
def test_ledger_rows_keyed_by_github_url(scan):
|
||||
module, _, run = scan
|
||||
kept = "url\tdate\treason\nhttps://github.com/Example/Project\t2026-10-16\tno use case\n"
|
||||
module.LEDGER.write_text(kept + "https://github.com/gone/repo\t2026-10-16\tno use case\n")
|
||||
|
||||
result = run()
|
||||
assert "Example/Project" not in result.out
|
||||
assert "pruned 1" in result.err
|
||||
assert module.LEDGER.read_text() == kept
|
||||
|
||||
|
||||
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