summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2014-02-25 20:22:15 +0100
committerWouter Bolsterlee <uws@xs4all.nl>2014-02-25 20:22:15 +0100
commitda109ab7b3c8a6ede332bc0d99e3e71cbecf5154 (patch)
tree4c688ad469e321f0af1454e61e2a6ec129ac6d1d /tests
parent91e0f8afac4ed3aeef3c0a79ae69b5df744ba45b (diff)
downloadhappybase-da109ab7b3c8a6ede332bc0d99e3e71cbecf5154.tar.gz
Revert "Allow batch_size=None in Table.scan() to avoid filter incompatibilities"
This reverts commit 8481d317804e060b12839b571ef22306074fba9c, since it is not a correct fix. See issue #56.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_api.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index ed78f81..2d22717 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -357,7 +357,7 @@ def test_scan():
list(table.scan(row_prefix='foobar', row_start='xyz'))
with assert_raises(ValueError):
- list(table.scan(batch_size=0))
+ list(table.scan(batch_size=None))
if connection.compat == '0.90':
with assert_raises(NotImplementedError):
@@ -446,13 +446,6 @@ def test_scan_sorting():
row.items())
-def test_scan_filter_and_batch_size():
- # See issue #54
- filter = "SingleColumnValueFilter ('cf1', 'qual1', =, 'binary:val1')"
- for k, v in table.scan(filter=filter, batch_size=None):
- print v
-
-
def test_delete():
row_key = 'row-test-delete'
data = {'cf1:col1': 'v1',