moto/tests/test_budgets/test_server.py

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

16 lines
448 B
Python
Raw Normal View History

2021-11-23 09:57:15 +00:00
import json
import moto.server as server
2024-01-07 12:03:33 +00:00
from moto import mock_aws
2021-11-23 09:57:15 +00:00
2024-01-07 12:03:33 +00:00
@mock_aws
2021-11-23 09:57:15 +00:00
def test_budgets_describe_budgets():
backend = server.create_backend_app("budgets")
test_client = backend.test_client()
headers = {"X-Amz-Target": "AWSBudgetServiceGateway.DescribeBudgets"}
resp = test_client.post("/", headers=headers, json={})
assert resp.status_code == 200
assert json.loads(resp.data) == {"Budgets": [], "nextToken": None}