File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ class UnsuccessfulResponse:
343
343
344
344
class _TestCase :
345
345
operation : str
346
+ service_defn : str = "MyService"
346
347
input : Input = Input ("" )
347
348
headers : dict [str , str ] = {}
348
349
expected : SuccessfulResponse
@@ -621,8 +622,8 @@ class OperationError(_FailureTestCase):
621
622
622
623
623
624
class UnknownService (_FailureTestCase ):
624
- operation = "echo "
625
- service = "NonExistentService "
625
+ service_defn = "NonExistentService "
626
+ operation = "<should not be used by test> "
626
627
expected = UnsuccessfulResponse (
627
628
status_code = 404 ,
628
629
retryable_header = False ,
@@ -710,7 +711,9 @@ async def _test_start_operation(
710
711
server_address = f"http://127.0.0.1:{ env ._http_port } " , # type: ignore
711
712
endpoint = endpoint ,
712
713
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__
714
717
),
715
718
)
716
719
You can’t perform that action at this time.
0 commit comments