Skip to content

Commit

Permalink
Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko committed Jun 1, 2020
1 parent 836b247 commit 7a64565
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/test_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _get_target_http(self, project):
'host': 'myorg.sparkhost.com',
'port': 443,
'token': 'abc123',
'organization': '0123456789',
'organization': 123456789,
'cluster': '01234-23423-coffeetime',
}
},
Expand Down Expand Up @@ -65,7 +65,7 @@ def hive_http_connect(thrift_transport):
self.assertEqual(thrift_transport.scheme, 'https')
self.assertEqual(thrift_transport.port, 443)
self.assertEqual(thrift_transport.host, 'myorg.sparkhost.com')
self.assertEqual(thrift_transport.path, '/sql/protocolv1/o/0123456789/01234-23423-coffeetime')
self.assertEqual(thrift_transport.path, '/sql/protocolv1/o/123456789/01234-23423-coffeetime')

# with mock.patch.object(hive, 'connect', new=hive_http_connect):
with mock.patch('dbt.adapters.spark.connections.hive.connect', new=hive_http_connect):
Expand Down Expand Up @@ -259,7 +259,7 @@ def test_profile_with_database(self):
'host': 'myorg.sparkhost.com',
'port': 443,
'token': 'abc123',
'organization': '0123456789',
'organization': 123456789,
'cluster': '01234-23423-coffeetime',
}
},
Expand Down

0 comments on commit 7a64565

Please sign in to comment.