refactor(backend): type enumeration failures
prd-number-check / require-numbered-prds (pull_request) Successful in 6s
lint / lint (push) Successful in 1m0s
test / coverage (pull_request) Blocked by required conditions
test / unit (pull_request) Successful in 59s
test / image-input-builds (pull_request) Successful in 1m8s
test / integration-docker (pull_request) Waiting to run
tracker-policy-pr / check-pr (pull_request) Failing after 13s

This commit is contained in:
2026-07-26 22:32:43 +00:00
parent 90097a50ee
commit 38d3f0fe0c
8 changed files with 42 additions and 20 deletions
+2 -1
View File
@@ -28,6 +28,7 @@ from unittest.mock import patch
from tests.unit import use_bottle_root
from bot_bottle import bottle_state
from bot_bottle.backend.docker import enumerate as _enumerate
from bot_bottle.backend import EnumerationError
class TestParseServicesByProject(unittest.TestCase):
@@ -82,7 +83,7 @@ class TestQueryServicesByProject(unittest.TestCase):
args=["docker"], returncode=1, stdout="", stderr="daemon down",
),
):
with self.assertRaisesRegex(RuntimeError, "daemon down"):
with self.assertRaisesRegex(EnumerationError, "daemon down"):
_enumerate._query_services_by_project()