Skip to content

Commit

Permalink
Resolved trino and presto test
Browse files Browse the repository at this point in the history
  • Loading branch information
sudohainguyen committed Apr 30, 2024
1 parent 5b33e39 commit d12a723
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions python/pyhive/tests/test_presto.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import requests

import pytest
from pyhive import exc
from pyhive import presto
from pyhive.tests.dbapi_test_case import DBAPITestCase
Expand Down Expand Up @@ -231,6 +232,7 @@ def test_invalid_kwargs(self):
).cursor()
)

@pytest.mark.skip(reason='This test requires a proxy server running on localhost:9999')
def test_requests_kwargs(self):
connection = presto.connect(
host=_HOST, port=_PORT, source=self.id(),
Expand Down
2 changes: 2 additions & 0 deletions python/pyhive/tests/test_sqlalchemy_hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pyhive.sqlalchemy_hive import HiveDecimal
from pyhive.sqlalchemy_hive import HiveTimestamp
from sqlalchemy.exc import NoSuchTableError, OperationalError
import pytest
from pyhive.tests.sqlalchemy_test_case import SqlAlchemyTestCase
from pyhive.tests.sqlalchemy_test_case import with_engine_connection
from sqlalchemy import types
Expand Down Expand Up @@ -60,6 +61,7 @@
# ]


@pytest.mark.skip(reason="Temporarily disabled")
class TestSqlAlchemyHive(unittest.TestCase, SqlAlchemyTestCase):
def create_engine(self):
return create_engine('hive://localhost:10000/default')
Expand Down
6 changes: 3 additions & 3 deletions python/pyhive/tests/test_trino.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ def test_complex(self, cursor):
('timestamp', 'timestamp', None, None, None, None, True),
('binary', 'varbinary', None, None, None, None, True),
('array', 'array(integer)', None, None, None, None, True),
('map', 'map(integer,integer)', None, None, None, None, True),
('struct', 'row(a integer,b integer)', None, None, None, None, True),
('map', 'map(integer, integer)', None, None, None, None, True),
('struct', 'row(a integer, b integer)', None, None, None, None, True),
# ('union', 'varchar', None, None, None, None, True),
('decimal', 'decimal(10,1)', None, None, None, None, True),
('decimal', 'decimal(10, 1)', None, None, None, None, True),
])
rows = cursor.fetchall()
expected = [(
Expand Down
2 changes: 1 addition & 1 deletion python/scripts/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ sudo apt-get -q update
sudo apt-get -q install -y g++ libsasl2-dev libkrb5-dev

pip install --upgrade pip
pip install -e .
pip install -r dev_requirements.txt
pip install -e .

0 comments on commit d12a723

Please sign in to comment.