2023-08-16 21:56:23 +00:00
|
|
|
"""Test the different server responses."""
|
2024-03-21 20:17:29 +00:00
|
|
|
|
2017-09-26 15:46:18 +00:00
|
|
|
import moto.server as server
|
2024-01-07 12:03:33 +00:00
|
|
|
from moto import mock_aws
|
2017-09-26 15:46:18 +00:00
|
|
|
|
2017-09-27 08:54:46 +00:00
|
|
|
|
2024-01-07 12:03:33 +00:00
|
|
|
@mock_aws
|
2017-09-26 15:46:18 +00:00
|
|
|
def test_polly_list():
|
|
|
|
backend = server.create_backend_app("polly")
|
|
|
|
test_client = backend.test_client()
|
2017-09-27 08:54:46 +00:00
|
|
|
|
2019-10-31 15:44:26 +00:00
|
|
|
res = test_client.get("/v1/lexicons")
|
2023-08-16 21:56:23 +00:00
|
|
|
assert res.status_code == 200
|