New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.7.1: pytest warnings #332
Comments
Warnings are fixed in the new version: https://github.com/dsoftwareinc/fakeredis-py/runs/6627979677?check_suite_focus=true |
Retested 1.8 and still I see warnings + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-fakeredis-1.8-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-fakeredis-1.8-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/fakeredis-py-1.8, configfile: pyproject.toml
plugins: cov-3.0.0, asyncio-0.18.2, mock-3.7.0, hypothesis-6.41.0
asyncio: mode=strict
collected 1303 items
test/test_aioredis1.py ssssssssssssssssssssssssss [ 1%]
test/test_aioredis2.py ..s.s.s.s.s.s.s.s.s.s.s.s.s.s....... [ 4%]
test/test_fakeredis.py s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s [ 15%]
.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s [ 28%]
.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s [ 40%]
.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.ssssss......sss...ssssss......ss..ss..s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s [ 53%]
.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s [ 65%]
.s.s.s..s.s.s.s.s.s.s.s.s.s.s.s.ss..s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.ss..s.s...s.s.s.s.s................................. [ 78%]
...................................................................s [ 83%]
test/test_hypothesis.py sssssssssss [ 84%]
test/test_init_args.py .......... [ 85%]
test/test_lua.py s.s.s.s.s.s.s.s.s.s.sss.s.s.sss.s.s.s.s.s.s.s.s.s.s.s.s.sss.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s..s..s.. [ 92%]
test/test_redis2_only.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 98%]
test/test_redis4_plus.py ss.s.s.s.s.s.. [100%]
============================================================================= warnings summary =============================================================================
test/test_aioredis2.py::test_redis_asyncio_is_used
test/test_aioredis2.py:59: PytestWarning: The test <Function test_redis_asyncio_is_used> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove asyncio marker. If the test is not marked explicitly, check for global markers applied via 'pytestmark'.
@testtools.run_test_if_redis_ver('above', '4.2')
test/test_fakeredis.py::test_hmset_empty_raises_error[FakeStrictRedis]
/home/tkloczko/rpmbuild/BUILD/fakeredis-py-1.8/test/test_fakeredis.py:1558: DeprecationWarning: FakeStrictRedis.hmset() is deprecated. Use FakeStrictRedis.hset() instead.
r.hmset('foo', {})
test/test_fakeredis.py::test_hmset[FakeStrictRedis]
/home/tkloczko/rpmbuild/BUILD/fakeredis-py-1.8/test/test_fakeredis.py:1563: 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-py-1.8/test/test_fakeredis.py:1569: 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-py-1.8/test/test_fakeredis.py:4447: DeprecationWarning: FakeStrictRedis.hmset() is deprecated. Use FakeStrictRedis.hset() instead.
r.hmset('name', {'key': 1})
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [2] test/test_aioredis1.py:49: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:54: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:64: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:75: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:86: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:105: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:112: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:119: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:133: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:142: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:148: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:154: Test is only applicable to aioredis 1.x
SKIPPED [2] test/test_aioredis1.py:159: Test is only applicable to aioredis 1.x
SKIPPED [14] test/test_aioredis2.py:39: Redis is not running
SKIPPED [514] test/conftest.py:51: Redis is not running
SKIPPED [1] test/test_fakeredis.py:4670: Test is only applicable if aioredis is not installed
SKIPPED [11] test/test_hypothesis.py:376: redis is not running
SKIPPED [2] test/test_lua.py:124: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_lua.py:159: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_lua.py:254: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:15: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:20: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:32: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:38: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:44: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:49: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:55: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:61: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:67: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:72: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:77: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:92: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:96: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:100: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:107: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:118: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:125: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:132: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:139: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:145: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:150: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:160: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:165: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:170: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:175: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:180: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:191: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:196: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:208: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:216: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:227: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:232: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:241: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:249: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:256: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:262: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:278: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:286: Test is only applicable to redis-py 3 and above
SKIPPED [2] test/test_redis2_only.py:296: Test is only applicable to redis-py 3 and above
SKIPPED [1] test/test_redis4_plus.py:16: Test is only applicable if aioredis is not installed
============================================================== 652 passed, 651 skipped, 5 warnings in 47.07s =============================================================== |
There is one warning that is relevant there:
The others seem to come from the |
Just tested 1.8.1 ====================================================================== warnings summary ======================================================================
test/test_fakeredis.py::test_hmset_empty_raises_error[FakeStrictRedis]
/home/tkloczko/rpmbuild/BUILD/fakeredis-py-1.8.1/test/test_fakeredis.py:1557: DeprecationWarning: FakeStrictRedis.hmset() is deprecated. Use FakeStrictRedis.hset() instead.
r.hmset('foo', {})
test/test_fakeredis.py::test_hmset[FakeStrictRedis]
/home/tkloczko/rpmbuild/BUILD/fakeredis-py-1.8.1/test/test_fakeredis.py:1562: 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-py-1.8.1/test/test_fakeredis.py:1568: 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-py-1.8.1/test/test_fakeredis.py:4446: DeprecationWarning: FakeStrictRedis.hmset() is deprecated. Use FakeStrictRedis.hset() instead.
r.hmset('name', {'key': 1})
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================== short test summary info =================================================================== |
@kloczek These warnings are equivalent to the behavior of redis-py: https://github.com/redis/redis-py/blob/3081a32b3852276999bb250655e4dfe2c87c654c/tests/test_commands.py#L2837-L2846 |
Closing as this ticket is now outdated. |
pytest summary warnings
The text was updated successfully, but these errors were encountered: