2022-10-04 16:28:30 +00:00
|
|
|
import boto3
|
|
|
|
import pytest
|
|
|
|
|
2024-01-07 12:03:33 +00:00
|
|
|
from moto import mock_aws
|
2022-10-04 16:28:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="function", name="ec2")
|
|
|
|
def fixture_ec2():
|
2024-01-07 12:03:33 +00:00
|
|
|
with mock_aws():
|
2022-10-04 16:28:30 +00:00
|
|
|
yield boto3.client("ec2", region_name="us-east-1")
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="function", name="efs")
|
|
|
|
def fixture_efs():
|
2024-01-07 12:03:33 +00:00
|
|
|
with mock_aws():
|
2022-10-04 16:28:30 +00:00
|
|
|
yield boto3.client("efs", region_name="us-east-1")
|