moto/tests/test_mediaconnect/test_server.py
2023-11-30 14:55:51 -01:00

20 lines
401 B
Python

import json
import moto.server as server
from moto import mock_mediaconnect
"""
Test the different server responses
"""
@mock_mediaconnect
def test_mediaconnect_list_flows():
backend = server.create_backend_app("mediaconnect")
test_client = backend.test_client()
res = test_client.get("/v1/flows")
result = res.data.decode("utf-8")
assert json.loads(result) == {"flows": []}