Skip to content

Commit

Permalink
RM-96 use magicMock for builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantimjohn committed Jul 17, 2023
1 parent 37a7930 commit e59baaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/records/test_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def test_prep_table_not_exists(self, mock_quote_schema_and_table):

@patch('records_mover.records.prep.quote_schema_and_table')
def test_prep_table_exists_drop_explicit(self, mock_quote_schema_and_table):
mock_schema_sql = Mock(name='schema_sql', spec=str)
mock_schema_sql = MagicMock(name='schema_sql', spec=str)
mock_schema_sql.__str__.return_value = 'schema_sql'
mock_driver = Mock(name='driver', spec=DBDriver)
mock_db = MagicMock(name='db')
Expand Down

0 comments on commit e59baaa

Please sign in to comment.