summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_timeseries.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix `TIMESERIES` (round floats) and `JSON` tests (#2421)dvora-h2022-10-231-1/+1
| | | | | * Fix timeseries tests (round floats) * fix json tests
* fix test (#2358)dvora-h2022-08-251-0/+3
|
* Drop python 3.6 support (#2306)dvora-h2022-07-271-4/+0
|
* Fix warnings and resource usage problems in asyncio unittests (#2258)Kristján Valur Jónsson2022-07-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use pytest-asyncio in auto mode Remove overly genereric `pytestmark=pytest.mark.asyncio` causing lots of warning noise * Use "Factories as Fixtures" test pattern for the `create_redis` fixture this fixture is now async, avoiding teardown problems with missing event loops. * Fix sporadic error on fast event loops, such as `--uvloop` * Close connection, even if "username" was in kwargs This fixes a resource usage warning in the async unittests. * Do async cleanup of acl passwords via a fixture * Remove unused import, fix whitespace * Fix test with missing "await" * Close pubsub objects after use in unittest Use a simple fixture where possible, otherwise manually call pubsub.close() * re-introduce `pytestmark=pytest.mark.asyncio` for python 3.6 * Use context manager to clean up connections in connection pool for unit tests * Provide asynccontextmanager for python 3.6 * make `test_late_subscribe()` more robuste * Catch a couple of additional leaked resources
* late eval of the skip condition (#2248)Kristján Valur Jónsson2022-06-271-1/+1
| | | | | | | | | | * late eval of the skip condition at module import time, the REDIS_INFO dict hasn't been initialized. * Store REDIS_INFO in config object, where it is available from condition strings * Fix comparson of time You can't test rounded values for equalness, since they may fall each on a different side of 0.5. It is better to test their absolute difference for a certain tolerance, in this case 1.0 which is the intent of the original round.
* Async tests for redis commands, json, bloom, timeseries (#2087)dvora-h2022-04-071-0/+556
* test async commands * test async json commands * test async timeseries commands * test async bloom commands * linters * linters * skip on cluster * linters * linters * isort * flynt * remove print