Remove redundant test code (#3640)
These tests, when run, do not execute any `moto` code. They fail the parameter validation check in `botocore`, which raises an exception before ever sending a request. These tests do not cover or verify any `moto` behavior and have been removed.
This commit is contained in:
parent
779d18e00c
commit
cd044ef00b
9 changed files with 18 additions and 199 deletions
|
|
@ -4,7 +4,7 @@ import pytest
|
|||
|
||||
import boto3
|
||||
|
||||
from botocore.exceptions import ParamValidationError, ClientError
|
||||
from botocore.exceptions import ClientError
|
||||
from botocore.parsers import ResponseParserError
|
||||
import json
|
||||
import sure # noqa
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import boto.vpc
|
|||
import pytest
|
||||
import sure # noqa
|
||||
from boto.exception import EC2ResponseError
|
||||
from botocore.exceptions import ClientError, ParamValidationError
|
||||
from botocore.exceptions import ClientError
|
||||
from moto import mock_ec2, mock_ec2_deprecated
|
||||
from tests import EXAMPLE_AMI_ID
|
||||
|
||||
|
|
@ -202,11 +202,6 @@ def test_modify_subnet_attribute_validation():
|
|||
VpcId=vpc.id, CidrBlock="10.0.0.0/24", AvailabilityZone="us-west-1a"
|
||||
)
|
||||
|
||||
with pytest.raises(ParamValidationError):
|
||||
client.modify_subnet_attribute(
|
||||
SubnetId=subnet.id, MapPublicIpOnLaunch={"Value": "invalid"}
|
||||
)
|
||||
|
||||
|
||||
@mock_ec2_deprecated
|
||||
def test_subnet_get_by_id():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue