jamesls/fakeredis

1.6.1:pytest warnings

kloczek opened this issue · 1 comments

Looks like latest pytest shows some warnings

============================================================================= warnings summary =============================================================================
test/test_aioredis2.py::test_blocking_timeout[fake]
test/test_aioredis2.py::test_blocking_unblock[fake]
  /home/tkloczko/rpmbuild/BUILDROOT/python-fakeredis-1.6.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/fakeredis/_async.py:19: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead
    with async_timeout.timeout(timeout if timeout else None):

test/test_fakeredis.py::test_hmset_empty_raises_error[FakeStrictRedis]
  /home/tkloczko/rpmbuild/BUILD/fakeredis-1.6.1/test/test_fakeredis.py:1602: DeprecationWarning: FakeStrictRedis.hmset() is deprecated. Use FakeStrictRedis.hset() instead.
    r.hmset('foo', {})

test/test_fakeredis.py::test_hmset[FakeStrictRedis]
  /home/tkloczko/rpmbuild/BUILD/fakeredis-1.6.1/test/test_fakeredis.py:1607: DeprecationWarning: FakeStrictRedis.hmset() is deprecated. Use FakeStrictRedis.hset() instead.
    assert r.hmset('foo', {'k2': 'v2', 'k3': 'v3'}) is True

test/test_fakeredis.py::test_hmset_wrong_type[FakeStrictRedis]
  /home/tkloczko/rpmbuild/BUILD/fakeredis-1.6.1/test/test_fakeredis.py:1626: DeprecationWarning: FakeStrictRedis.hmset() is deprecated. Use FakeStrictRedis.hset() instead.
    r.hmset('foo', {'key': 'value'})

test/test_fakeredis.py::TestFakeStrictRedisConnectionErrors::test_hmset[FakeStrictRedis]
  /home/tkloczko/rpmbuild/BUILD/fakeredis-1.6.1/test/test_fakeredis.py:5264: DeprecationWarning: FakeStrictRedis.hmset() is deprecated. Use FakeStrictRedis.hset() instead.
    r.hmset('name', {'key': 1})

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================

Duplicate with updated #332
Closing.