moto/tests/test_batch/test_batch.py

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

13 lines
325 B
Python
Raw Permalink Normal View History

import boto3
import pytest
2024-01-07 12:03:33 +00:00
from moto import mock_aws
@pytest.mark.parametrize("region", ["us-west-2", "cn-northwest-1"])
2024-01-07 12:03:33 +00:00
@mock_aws
def test_batch_regions(region):
client = boto3.client("batch", region_name=region)
resp = client.describe_jobs(jobs=[""])
assert resp["ResponseMetadata"]["HTTPStatusCode"] == 200