fix(scripts): name the unused tuple members instead of using _
ansible-test sanity's pylint disallows _ as a name (18 findings in the bot-diff gate, the bump script and their tests, build run 2423). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
b7b14b7277
commit
d6837217c0
3 files changed
+14
-14
No files matched your search
@@ -129,7 +129,7 @@ class RepoTest(unittest.TestCase):
|
||||
return (self.repo / ".gitea/workflows/image.yml").read_text()
|
||||
|
||||
def test_nothing_changed(self):
|
||||
code, out, _ = self.bump()
|
||||
code, out, unused = self.bump()
|
||||
self.assertEqual((code, out), (0, "image versions: nothing to bump\n"))
|
||||
self.assertEqual(self.versions(), IMAGE_YML.format(mol="0.1.0", ci="0.2.0"))
|
||||
|
||||
@@ -173,7 +173,7 @@ class RepoTest(unittest.TestCase):
|
||||
|
||||
def test_bad_base_ref_is_a_clean_failure(self):
|
||||
for ref in ("--output=x", "nope"):
|
||||
code, _, err = self.bump(ref)
|
||||
code, unused, err = self.bump(ref)
|
||||
self.assertEqual(code, 1)
|
||||
self.assertNotIn("Traceback", err)
|
||||
self.assertEqual(len(err.strip().splitlines()), 1, err)
|
||||
@@ -191,7 +191,7 @@ class RepoTest(unittest.TestCase):
|
||||
self.write(".gitea/workflows/image.yml", flow)
|
||||
self.commit("flow")
|
||||
self.write("requirements-dev.txt", "a==2\n")
|
||||
code, _, err = self.bump()
|
||||
code, unused, err = self.bump()
|
||||
self.assertEqual(code, 1)
|
||||
self.assertEqual(len(err.strip().splitlines()), 1, err)
|
||||
self.assertEqual(self.versions(), flow)
|
||||
|
||||
Reference in new issue
Block a user