moto/tests/test_batch/test_server.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
320 B
Python
Raw Normal View History

2017-09-26 16:37:26 +00:00
import moto.server as server
2024-01-07 12:03:33 +00:00
from moto import mock_aws
2017-09-26 16:37:26 +00:00
2019-10-31 15:44:26 +00:00
"""
2017-09-26 16:37:26 +00:00
Test the different server responses
2019-10-31 15:44:26 +00:00
"""
2017-09-26 16:37:26 +00:00
2017-10-22 20:36:39 +00:00
2024-01-07 12:03:33 +00:00
@mock_aws
2017-09-26 16:37:26 +00:00
def test_batch_list():
backend = server.create_backend_app("batch")
test_client = backend.test_client()
2017-10-22 20:36:39 +00:00
res = test_client.get("/v1/describecomputeenvironments")
assert res.status_code == 200