Skip to content

Commit

Permalink
remove unused tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jiezhen-chen committed Jul 12, 2023
1 parent 781dfe3 commit 7b2f375
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/unit/test_redshift_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,28 +587,6 @@ def mock_cursor(self, mock_get_thread_conn):
mock_handle.return_value = mock_cursor
return mock_cursor

@mock.patch("dbt.adapters.redshift.impl.RedshiftAdapter._get_cursor")
def test_get_tables(self, mock_cursor):
mock_cursor.return_value.get_tables.return_value = [
("apple", "banana", "cherry", "orange")
]
results = self.adapter._get_tables(database="somedb", schema="someschema")
self.assertTrue(results[0]["database"] == "apple")
self.assertTrue(results[0]["schema"] == "banana")
self.assertTrue(results[0]["name"] == "cherry")
self.assertTrue(results[0]["type"] == "orange")

@mock.patch("dbt.adapters.redshift.impl.RedshiftAdapter._get_tables")
def test_list_relations_without_caching(self, mock_get_tables):
mock_get_tables.return_value = [
{"database": "somedb", "schema": "someschema", "name": "sometb", "type": "VIEW"}
]
mock_schema = mock.MagicMock(database="somedb", schema="someschema")
results = self.adapter.list_relations_without_caching(mock_schema)
self.assertTrue(results[0].database == "somedb")
self.assertTrue(results[0].schema == "someschema")
self.assertTrue(results[0].identifier == "sometb")


class TestRedshiftAdapterConversions(TestAdapterConversions):
def test_convert_text_type(self):
Expand Down

0 comments on commit 7b2f375

Please sign in to comment.