diff options
author | Wouter Bolsterlee <uws@xs4all.nl> | 2012-07-12 00:43:59 +0200 |
---|---|---|
committer | Wouter Bolsterlee <uws@xs4all.nl> | 2012-07-12 00:43:59 +0200 |
commit | fd9ca7e9398b1c8e38fdbc8008f753237a5e0e59 (patch) | |
tree | 6855cebccb25cc928ee4b84694262337f4f44c28 /tests | |
parent | 575a39c718aeb855f19ad461beb96e65243c31e5 (diff) | |
download | happybase-fd9ca7e9398b1c8e38fdbc8008f753237a5e0e59.tar.gz |
Support HAPPYBASE_TRANSPORT env var for the tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_api.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 47b3114..e0c40aa 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -20,6 +20,7 @@ import happybase HAPPYBASE_HOST = os.environ.get('HAPPYBASE_HOST') HAPPYBASE_PORT = os.environ.get('HAPPYBASE_PORT') HAPPYBASE_COMPAT = os.environ.get('HAPPYBASE_COMPAT', '0.92') +HAPPYBASE_TRANSPORT = os.environ.get('HAPPYBASE_TRANSPORT', 'buffered') KEEP_TABLE = ('HAPPYBASE_NO_CLEANUP' in os.environ) TABLE_PREFIX = 'happybase_tests_tmp' @@ -33,7 +34,8 @@ def setup_module(): connection = happybase.Connection(host=HAPPYBASE_HOST, port=HAPPYBASE_PORT, table_prefix=TABLE_PREFIX, - compat=HAPPYBASE_COMPAT) + compat=HAPPYBASE_COMPAT, + transport=HAPPYBASE_TRANSPORT) assert_is_not_none(connection) cfs = { |