Skip to content

Commit 2a84215

Browse files
committed
Fix test
1 parent 6c120d8 commit 2a84215

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from happybase import Connection, ConnectionPool, NoConnectionsAvailable
1414

1515
HAPPYBASE_HOST = os.environ.get('HAPPYBASE_HOST')
16-
HAPPYBASE_PORT = os.environ.get('HAPPYBASE_PORT')
16+
HAPPYBASE_PORT = int(os.environ['HAPPYBASE_PORT']) if 'HAPPYBASE_PORT' in os.environ else None
1717
HAPPYBASE_COMPAT = os.environ.get('HAPPYBASE_COMPAT', '0.98')
1818
HAPPYBASE_TRANSPORT = os.environ.get('HAPPYBASE_TRANSPORT', 'buffered')
1919
KEEP_TABLE = ('HAPPYBASE_NO_CLEANUP' in os.environ)

0 commit comments

Comments
 (0)