Skip to content

Commit 28a9a47

Browse files
committed
Fix tests
1 parent a4b8d6f commit 28a9a47

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/nexus/test_handler.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ class UnsuccessfulResponse:
343343

344344
class _TestCase:
345345
operation: str
346+
service_defn: str = "MyService"
346347
input: Input = Input("")
347348
headers: dict[str, str] = {}
348349
expected: SuccessfulResponse
@@ -621,8 +622,8 @@ class OperationError(_FailureTestCase):
621622

622623

623624
class UnknownService(_FailureTestCase):
624-
operation = "echo"
625-
service = "NonExistentService"
625+
service_defn = "NonExistentService"
626+
operation = "<should not be used by test>"
626627
expected = UnsuccessfulResponse(
627628
status_code=404,
628629
retryable_header=False,
@@ -710,7 +711,9 @@ async def _test_start_operation(
710711
server_address=f"http://127.0.0.1:{env._http_port}", # type: ignore
711712
endpoint=endpoint,
712713
service=(
713-
MyService.__name__ if with_service_definition else MyServiceHandler.__name__
714+
test_case.service_defn
715+
if with_service_definition
716+
else MyServiceHandler.__name__
714717
),
715718
)
716719

0 commit comments

Comments
 (0)