Skip to content

Commit

Permalink
switch esme client class to use class attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlamallama committed Nov 21, 2024
1 parent 41be59c commit 8797304
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions tests/transports/smpp/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,18 @@ async def client(
) -> EsmeClient:
"""An EsmeClient with default config"""
config = SmppTransceiverTransportConfig()
return EsmeClient(
nursery,
client_stream,
config,
sequencer,
smpp_cache,
submit_sm_processor,
sm_processor,
dr_processor,
send_message_channel,
)

EsmeClient.nursery = nursery
EsmeClient.stream = client_stream
EsmeClient.config = config
EsmeClient.sequencer = sequencer
EsmeClient.smpp_cache = smpp_cache
EsmeClient.submit_sm_processor = submit_sm_processor
EsmeClient.sm_processer = sm_processor
EsmeClient.dr_processor = dr_processor
EsmeClient.send_message_channel = send_message_channel

return EsmeClient()


@pytest.fixture()
Expand Down

0 comments on commit 8797304

Please sign in to comment.