Skip to content

Commit

Permalink
Revert "RM-96 fix vertica driver test"
Browse files Browse the repository at this point in the history
This reverts commit 3581ff6.
  • Loading branch information
ryantimjohn committed Jul 17, 2023
1 parent 3581ff6 commit 349ea74
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/unit/db/vertica/test_vertica_db_driver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .base_test_vertica_db_driver import BaseTestVerticaDBDriver
from mock import Mock
from mock import Mock, MagicMock
from ...records.format_hints import (vertica_format_hints)
import sqlalchemy

Expand All @@ -8,7 +8,10 @@ class TestVerticaDBDriver(BaseTestVerticaDBDriver):
def test_unload(self):
mock_result = Mock(name='result')
mock_result.rows = 579
self.mock_db_engine.execute.return_value.fetchall.return_value = [mock_result]
mock_connection = MagicMock(name='connection')
self.mock_db_engine.connect.return_value \
.__enter__.return_value = mock_connection
mock_connection.execute.return_value.fetchall.return_value = [mock_result]
self.mock_records_unload_plan.processing_instructions.fail_if_dont_understand = True
self.mock_records_unload_plan.processing_instructions.fail_if_cant_handle_hint = True

Expand All @@ -25,7 +28,10 @@ def test_unload(self):
def test_unload_to_non_s3(self):
mock_result = Mock(name='result')
mock_result.rows = 579
self.mock_db_engine.execute.return_value.fetchall.return_value = [mock_result]
mock_connection = MagicMock(name='connection')
self.mock_db_engine.connect.return_value \
.__enter__.return_value = mock_connection
mock_connection.execute.return_value.fetchall.return_value = [mock_result]
self.mock_records_unload_plan.processing_instructions.fail_if_dont_understand = True
self.mock_records_unload_plan.processing_instructions.fail_if_cant_handle_hint = True

Expand Down

0 comments on commit 349ea74

Please sign in to comment.