Skip to content

Commit 54e7c03

Browse files
author
Greg Leclercq
committed
Fix tests: perform integration tests against latest Presto release
1 parent 10e8ffd commit 54e7c03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

integration_tests/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_latest_release():
4545

4646
# Temporary fix because can't start 0.203
4747
# Use get_latest_release() instead
48-
PRESTO_VERSION = os.environ.get("PRESTO_VERSION") or "0.202"
48+
PRESTO_VERSION = os.environ.get("PRESTO_VERSION") or get_latest_release()
4949
PRESTO_HOST = "127.0.0.1"
5050
PRESTO_PORT = 8080
5151

integration_tests/test_dbapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_select_query(presto_connection):
4848
assert len(rows) > 0
4949
row = rows[0]
5050
assert row[0] == "test"
51-
assert row[2] == fixtures.PRESTO_VERSION
51+
assert row[2].split("-")[0] == fixtures.PRESTO_VERSION
5252
columns = dict([desc[:2] for desc in cur.description])
5353
assert columns["node_id"] == "varchar"
5454
assert columns["http_uri"] == "varchar"

0 commit comments

Comments
 (0)