2021-10-18 16:13:08 +00:00
|
|
|
import boto3
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
from moto import mock_batch
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.parametrize("region", ["us-west-2", "cn-northwest-1"])
|
|
|
|
@mock_batch
|
|
|
|
def test_batch_regions(region):
|
|
|
|
client = boto3.client("batch", region_name=region)
|
|
|
|
resp = client.describe_jobs(jobs=[""])
|
2023-06-16 10:42:07 +00:00
|
|
|
assert resp["ResponseMetadata"]["HTTPStatusCode"] == 200
|