Skip to content

Commit

Permalink
Fix MockTransportLayerClient for unit tests.
Browse files Browse the repository at this point in the history
Fixing setup of scheduler client unit tests by adding implementation of
this classmethod, declared as abstract in upstream superclass.
  • Loading branch information
robertbartel committed Sep 8, 2023
1 parent 3bc4cc6 commit 828a1ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lib/communication/dmod/test/test_scheduler_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

class MockTransportLayerClient(TransportLayerClient):

@classmethod
def get_endpoint_protocol_str(cls, use_secure_connection: bool = True) -> str:
return "mock"

def __init__(self):
super().__init__(endpoint_host='', endpoint_port=8888)

Expand Down

0 comments on commit 828a1ea

Please sign in to comment.