| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
hey @bearrito thanks for the contrib! Apologies for the failures on the different module things, I'll double check my mistake on it. Will fix so you can rebase and have your checks passing! :) |
Sorry, something went wrong.
|
@totallyzen I'm 99% sure I did the wrong thing with dependencies. I can see they should go under the module group extras. In another issue (#436) I'm trying to create a new module. I think the docs are out of date on this - https://testcontainers-python.readthedocs.io/en/latest/README.html |
Sorry, something went wrong.
| anyio = "^4.3.0" | ||
| pre-commit = "^3.6.2" |
There was a problem hiding this comment.
for these,
Sorry, something went wrong.
|
I fixed the early-exit strat in #437 - was a doozy but I'm happy with the results! (dynamic matrix, no errors!) |
Sorry, something went wrong.
|
Updated. |
Sorry, something went wrong.
…v and CI (testcontainers#438) I could not install pre-commit handler because the package was missing in [tool.poetry.group.dev.dependencies]. I also updated the configuration for the pre-commit handler as black and ruff packages were outdated. Also removed deprecation for ruff v0.3.0 config in pyproject.toml. --------- Co-authored-by: Balint Bartha <39852431+totallyzen@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Adds support for async redis
Discussed somewhat here - #374
Tested in the recently fixed devcontainers.
(testcontainers-py3.11) vscode ➜ /workspaces/testcontainers-python (async-redis) $ poetry run pytest -v --cov=testcontainers.$* modules/redis/tests ====================================================================== test session starts ======================================================================= platform linux -- Python 3.11.8, pytest-7.4.3, pluggy-1.4.0 -- /home/vscode/.cache/pypoetry/virtualenvs/testcontainers-_53phrdA-py3.11/bin/python cachedir: .pytest_cache rootdir: /workspaces/testcontainers-python configfile: pyproject.toml plugins: cov-4.1.0, anyio-4.3.0 collected 6 items modules/redis/tests/test_redis.py::test_docker_run_redis ------------------------------------------------------------------------- live log call -------------------------------------------------------------------------- INFO testcontainers.core.container:container.py:63 Pulling image redis:latest INFO testcontainers.core.container:container.py:75 Container started: c79a46b1796e INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: c79a46b1796e> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: c79a46b1796e> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: c79a46b1796e> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: c79a46b1796e> with image redis:latest to be ready ... PASSED [ 16%] modules/redis/tests/test_redis.py::test_docker_run_redis_with_password ------------------------------------------------------------------------- live log call -------------------------------------------------------------------------- INFO testcontainers.core.container:container.py:63 Pulling image redis:latest INFO testcontainers.core.container:container.py:75 Container started: e76e6a81f80a INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: e76e6a81f80a> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: e76e6a81f80a> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: e76e6a81f80a> with image redis:latest to be ready ... PASSED [ 33%] modules/redis/tests/test_redis.py::test_key_set_in_async_redis[asyncio] ------------------------------------------------------------------------- live log call -------------------------------------------------------------------------- INFO testcontainers.core.container:container.py:63 Pulling image redis:latest INFO testcontainers.core.container:container.py:75 Container started: e648a9a48944 INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: e648a9a48944> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: e648a9a48944> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: e648a9a48944> with image redis:latest to be ready ... PASSED [ 50%] modules/redis/tests/test_redis.py::test_docker_run_async_redis[asyncio] SKIPPED (Need to sort out async pub/sub) [ 66%] modules/redis/tests/test_redis.py::test_docker_run_async_redis_with_password[asyncio] ------------------------------------------------------------------------- live log call -------------------------------------------------------------------------- INFO testcontainers.core.container:container.py:63 Pulling image redis:latest INFO testcontainers.core.container:container.py:75 Container started: 5587e82c125f INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: 5587e82c125f> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: 5587e82c125f> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: 5587e82c125f> with image redis:latest to be ready ... PASSED [ 83%] modules/redis/tests/test_redis.py::test_key_set_in_async[asyncio] ------------------------------------------------------------------------- live log call -------------------------------------------------------------------------- INFO testcontainers.core.container:container.py:63 Pulling image redis:latest INFO testcontainers.core.container:container.py:75 Container started: cc514d9a57f5 INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: cc514d9a57f5> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: cc514d9a57f5> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: cc514d9a57f5> with image redis:latest to be ready ... INFO testcontainers.core.waiting_utils:waiting_utils.py:52 Waiting for container <Container: cc514d9a57f5> with image redis:latest to be ready ... PASSED [100%]/home/vscode/.cache/pypoetry/virtualenvs/testcontainers-_53phrdA-py3.11/lib/python3.11/site-packages/coverage/inorout.py:503: CoverageWarning: Module testcontainers. was never imported. (module-not-imported) self.warn(f"Module {pkg} was never imported.", slug="module-not-imported") /home/vscode/.cache/pypoetry/virtualenvs/testcontainers-_53phrdA-py3.11/lib/python3.11/site-packages/coverage/control.py:885: CoverageWarning: No data was collected. (no-data-collected) self._warn("No data was collected.", slug="no-data-collected") WARNING: Failed to generate report: No data to report. /home/vscode/.cache/pypoetry/virtualenvs/testcontainers-_53phrdA-py3.11/lib/python3.11/site-packages/pytest_cov/plugin.py:312: CovReportWarning: Failed to generate report: No data to report. warnings.warn(CovReportWarning(message)) ---------- coverage: platform linux, python 3.11.8-final-0 ----------- ================================================================== 5 passed, 1 skipped in 4.15s ==================================================================There is currently no working tests for pub/sub.