def test_stop(): provider = SQSProvider('queue-name') provider._client_stop = CoroutineMock() provider.stop() provider._client_stop.assert_awaited()
def test_stop(): provider = SQSProvider('queue-name') provider.client = mock.Mock(close=CoroutineMock()) provider.stop() assert provider.client.close.called
def test_stop(): provider = SQSProvider('queue-name') provider.client = mock.Mock(close=CoroutineMock()) provider.stop() assert provider.client.close.called