testcontainers / testcontainers/testcontainers-python
Bug: redis/windows: RedisContainer has no attributes '_container'
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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