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:
Brian Pandola 2021-01-31 04:21:24 -08:00 committed by GitHub
commit cd044ef00b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 18 additions and 199 deletions

View file

@ -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