Skip to content

Commit 30e92d0

Browse files
committed
fix(test): use case-insensitive checks to avoid ANSI escape code mismatches in CI
1 parent 26d0885 commit 30e92d0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/cli/test_image_handler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,14 +466,14 @@ class TestImageMetadataRegistration(unittest.TestCase):
466466
def test_image_metadata_help(self):
467467
result = runner.invoke(app, ["image", "metadata", "--help"])
468468
self.assertEqual(result.exit_code, 0)
469-
self.assertIn("--tags", result.output)
470-
self.assertIn("--metadata", result.output)
469+
self.assertIn("tags", result.output.lower())
470+
self.assertIn("metadata", result.output.lower())
471471

472472
def test_tag_is_alias(self):
473473
result = runner.invoke(app, ["image", "tag", "--help"])
474474
self.assertEqual(result.exit_code, 0)
475-
self.assertIn("--tags", result.output)
476-
self.assertNotIn("--project", result.output)
475+
self.assertIn("tags", result.output.lower())
476+
self.assertNotIn("project", result.output.lower())
477477

478478

479479
class TestImageMetadataSingle(unittest.TestCase):

0 commit comments

Comments
 (0)