mirror of https://github.com/ledisdb/ledisdb.git
fixed setup.py; fixed test_zset.py bug
This commit is contained in:
parent
e9dfea5f1e
commit
4630ab1115
|
@ -25,15 +25,12 @@ except ImportError:
|
|||
from distutils.core import setup
|
||||
PyTest = lambda x: x
|
||||
|
||||
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
|
||||
long_description = f.read()
|
||||
f.close()
|
||||
|
||||
setup(
|
||||
name='ledis',
|
||||
version=__version__,
|
||||
description='Python client for ledis key-value store',
|
||||
long_description=long_description,
|
||||
description='Python client for ledisdb key-value database',
|
||||
long_description='Python client for ledisdb key-value database',
|
||||
url='https://github.com/siddontang/ledisdb',
|
||||
keywords=['ledis', 'key-value store'],
|
||||
license='MIT',
|
||||
|
@ -49,9 +46,5 @@ setup(
|
|||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 2.6',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.2',
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
]
|
||||
)
|
||||
|
|
|
@ -66,7 +66,7 @@ class TestCmdZset(unittest.TestCase):
|
|||
assert l.zrangebyscore('a', 2, 4, withscores=True) == \
|
||||
[('a2', 2), ('a3', 3), ('a4', 4)]
|
||||
|
||||
def test_rank(self):
|
||||
def test_zrank(self):
|
||||
l.zadd('a', a1=1, a2=2, a3=3, a4=4, a5=5)
|
||||
assert l.zrank('a', 'a1') == 0
|
||||
assert l.zrank('a', 'a3') == 2
|
||||
|
@ -167,4 +167,3 @@ class TestCmdZset(unittest.TestCase):
|
|||
assert 0 < l.zttl('a') <= 100
|
||||
assert l.zpersist('a')
|
||||
assert l.zttl('a') == -1
|
||||
|
||||
|
|
Loading…
Reference in New Issue