Beispiel #1
0
def test_stop():
    provider = SQSProvider('queue-name')
    provider._client_stop = CoroutineMock()
    provider.stop()
    provider._client_stop.assert_awaited()
Beispiel #2
0
def test_stop():
    provider = SQSProvider('queue-name')
    provider.client = mock.Mock(close=CoroutineMock())
    provider.stop()
    assert provider.client.close.called
Beispiel #3
0
def test_stop():
    provider = SQSProvider('queue-name')
    provider.client = mock.Mock(close=CoroutineMock())
    provider.stop()
    assert provider.client.close.called