mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-21 00:57:50 -06:00
fix: name orphaned pins on the triage line
needs_review counts an orphaned pin and a moved repository, but the triage line only added stale prose and unchecked refs, so pcem read "1 to review" for an upstream_commit outside its branch history.
This commit is contained in:
1 parent
739f651a16
commit
593260a5ed
2 files changed
+37
-7
No files matched your search
@@ -333,6 +333,19 @@ class TestGoneUpstreamIsNotAnError(unittest.TestCase):
|
||||
self.assertIn("upstream gone", out)
|
||||
self.assertIn("upstream error", out)
|
||||
|
||||
def test_triage_names_an_orphaned_pin_and_a_moved_repository(self):
|
||||
"""pcem's only problem was an upstream_commit off its dev branch, and
|
||||
the triage line read "1 to review" like any drift."""
|
||||
report = ProfileReport(
|
||||
name="pcem", entries=[], counts={"UNCHECKED": 2},
|
||||
orphaned=["sarah-walker-pcem/pcem: pin 25b54e3f is no ancestor of 4606fb1e"],
|
||||
moved_repos=["a/b answers as c/b (renamed or transferred)"],
|
||||
)
|
||||
self.assertEqual(
|
||||
profile_sync.triage_state(report),
|
||||
"2 to review, 1 orphaned pin, 1 repository moved, 2 unchecked",
|
||||
)
|
||||
|
||||
|
||||
class TestWorstStatus(unittest.TestCase):
|
||||
def test_gone_beats_everything(self):
|
||||
|
||||
Reference in new issue
Block a user