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
|
|
@ -1,6 +1,6 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from botocore.exceptions import ClientError, ParamValidationError
|
||||
from botocore.exceptions import ClientError
|
||||
import boto3
|
||||
import sure # noqa
|
||||
from moto import mock_ec2, mock_kms, mock_rds2
|
||||
|
|
@ -786,16 +786,8 @@ def test_modify_non_existent_option_group():
|
|||
conn = boto3.client("rds", region_name="us-west-2")
|
||||
conn.modify_option_group.when.called_with(
|
||||
OptionGroupName="non-existent",
|
||||
OptionsToInclude=[
|
||||
(
|
||||
"OptionName",
|
||||
"Port",
|
||||
"DBSecurityGroupMemberships",
|
||||
"VpcSecurityGroupMemberships",
|
||||
"OptionSettings",
|
||||
)
|
||||
],
|
||||
).should.throw(ParamValidationError)
|
||||
OptionsToInclude=[{"OptionName": "test-option"}],
|
||||
).should.throw(ClientError, "Specified OptionGroupName: non-existent not found.")
|
||||
|
||||
|
||||
@mock_rds2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue