Logo
Explore Help
Register Sign In
Yasuke/moto
1
0
Fork 0
You've already forked moto
Code Issues Pull Requests Packages Projects Releases Wiki Activity
moto/tests/test_mediaconnect/test_server.py

20 lines
401 B
Python
Raw Normal View History

Techdebt: Replace sure with regular assertions in MediaConnect (#6650)
2023-08-13 16:51:18 +00:00
import json
Admin: sorting imports with ruff (#7075)
2023-11-30 07:55:51 -08:00
Implements core MediaConnect endpoints (#3718) * Adds initial models and implements create_flow endpoint. * Updates README with a Releases section * Removes unused import * Adds __init__.py files to MediaLive and MediaConnect test directories. * Adds list_flows endpoint and tests. * Adds describe_flow endpoint and tests. * Adds delete_flow endpoint and tests. * Adds URLs * Adds start_flow and stop_flow endpoints and tests. * Adds tag_resource and list_tags_for_resource endpoints and tests. * Uses unquote for ARNs
2021-02-25 16:07:26 +00:00
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")
Techdebt: Replace sure with regular assertions in MediaConnect (#6650)
2023-08-13 16:51:18 +00:00
assert json.loads(result) == {"flows": []}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 647ms Template: 24ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API