Skip to content

Commit

Permalink
Fix tests: perform integration tests against latest Presto release
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Leclercq committed Jul 18, 2019
1 parent 10e8ffd commit 54e7c03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration_tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_latest_release():

# Temporary fix because can't start 0.203
# Use get_latest_release() instead
PRESTO_VERSION = os.environ.get("PRESTO_VERSION") or "0.202"
PRESTO_VERSION = os.environ.get("PRESTO_VERSION") or get_latest_release()
PRESTO_HOST = "127.0.0.1"
PRESTO_PORT = 8080

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_select_query(presto_connection):
assert len(rows) > 0
row = rows[0]
assert row[0] == "test"
assert row[2] == fixtures.PRESTO_VERSION
assert row[2].split("-")[0] == fixtures.PRESTO_VERSION
columns = dict([desc[:2] for desc in cur.description])
assert columns["node_id"] == "varchar"
assert columns["http_uri"] == "varchar"
Expand Down

0 comments on commit 54e7c03

Please sign in to comment.