moto/tests/test_budgets/test_server.py
2021-11-23 08:57:15 -01:00

17 lines
516 B
Python

import json
import sure # noqa # pylint: disable=unused-import
import moto.server as server
from moto import mock_budgets
@mock_budgets
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={})
resp.status_code.should.equal(200)
json.loads(resp.data).should.equal({"Budgets": [], "nextToken": None})