Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jiezhen-chen committed Jul 12, 2023
1 parent 2175a04 commit 4e3ed0d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/unit/test_redshift_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def test_implicit_database_conn(self):
db_groups=[],
timeout=None,
region=None,
database_metadata_current_db_only=True,
**DEFAULT_SSL_CONFIG,
)

Expand All @@ -95,7 +94,6 @@ def test_explicit_region_with_database_conn(self):
port=5439,
auto_create=False,
db_groups=[],
database_metadata_current_db_only=True,
region=None,
timeout=None,
**DEFAULT_SSL_CONFIG,
Expand Down Expand Up @@ -124,7 +122,6 @@ def test_explicit_iam_conn_without_profile(self):
db_groups=[],
profile=None,
port=5439,
database_metadata_current_db_only=True,
**DEFAULT_SSL_CONFIG,
)

Expand All @@ -143,7 +140,6 @@ def test_conn_timeout_30(self):
db_groups=[],
region=None,
timeout=30,
database_metadata_current_db_only=True,
**DEFAULT_SSL_CONFIG,
)

Expand Down Expand Up @@ -173,7 +169,6 @@ def test_explicit_iam_conn_with_profile(self):
profile="test",
timeout=None,
port=5439,
database_metadata_current_db_only=True,
**DEFAULT_SSL_CONFIG,
)

Expand Down Expand Up @@ -201,7 +196,6 @@ def test_explicit_iam_serverless_with_profile(self):
profile="test",
timeout=None,
port=5439,
database_metadata_current_db_only=True,
**DEFAULT_SSL_CONFIG,
)

Expand Down Expand Up @@ -231,7 +225,6 @@ def test_explicit_region(self):
profile="test",
timeout=None,
port=5439,
database_metadata_current_db_only=True,
**DEFAULT_SSL_CONFIG,
)

Expand Down Expand Up @@ -262,7 +255,6 @@ def test_explicit_region_failure(self):
profile="test",
timeout=None,
port=5439,
database_metadata_current_db_only=True,
**DEFAULT_SSL_CONFIG,
)

Expand Down Expand Up @@ -293,7 +285,6 @@ def test_explicit_invalid_region(self):
profile="test",
timeout=None,
port=5439,
database_metadata_current_db_only=True,
**DEFAULT_SSL_CONFIG,
)

Expand All @@ -314,7 +305,6 @@ def test_sslmode_disable(self):
timeout=None,
ssl=False,
sslmode=None,
database_metadata_current_db_only=True,
)

@mock.patch("redshift_connector.connect", Mock())
Expand All @@ -334,7 +324,6 @@ def test_sslmode_allow(self):
timeout=None,
ssl=True,
sslmode="verify-ca",
database_metadata_current_db_only=True,
)

@mock.patch("redshift_connector.connect", Mock())
Expand All @@ -354,7 +343,6 @@ def test_sslmode_verify_full(self):
timeout=None,
ssl=True,
sslmode="verify-full",
database_metadata_current_db_only=True,
)

@mock.patch("redshift_connector.connect", Mock())
Expand All @@ -374,7 +362,6 @@ def test_sslmode_verify_ca(self):
timeout=None,
ssl=True,
sslmode="verify-ca",
database_metadata_current_db_only=True,
)

@mock.patch("redshift_connector.connect", Mock())
Expand All @@ -394,7 +381,6 @@ def test_sslmode_prefer(self):
timeout=None,
ssl=True,
sslmode="verify-ca",
database_metadata_current_db_only=True,
)

@mock.patch("redshift_connector.connect", Mock())
Expand All @@ -421,7 +407,6 @@ def test_serverless_iam_failure(self):
user="",
profile="test",
port=5439,
database_metadata_current_db_only=True,
timeout=None,
**DEFAULT_SSL_CONFIG,
)
Expand Down

0 comments on commit 4e3ed0d

Please sign in to comment.