testcontainers / testcontainers/testcontainers-python

Bug: redis/windows: RedisContainer has no attributes '_container'

Open
#327 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐛 bug 🛟 help wanted
Dominant language
Python
Stars
2.3k
Forks
386
Avg merge
4h 40m
Merged PRs (30d)
1

Description

Describe the bug

Where docker did not started on running tests pc i get message

AttributeError: 'RedisContainer' object has no attribute '_container'

That is not informative

To Reproduce

Run any tests using testcontainers with docker stopped

AttributeError: 'RedisContainer' object has no attribute '_container'

Runtime environment

python 3.10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the RedisContainer entry point and reproduce the failure by running tests using testcontainers while Docker is stopped. Trace the startup error path and add coverage for this environment; done means the failure produces an informative error instead of an AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python, redis
Domain
databases, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.