redis / redis-om-python

Object mapping, and more, for Redis and Python
MIT License
1.07k stars 108 forks source link

redis-om installs `tests` package which overrides local `tests` folder imports #500

Open JordanZimmitti opened 1 year ago

JordanZimmitti commented 1 year ago

Hi,

I installed redis-om="^0.1.2" using Poetry and noticed that all my unit tests began failing. This is because redis-om installs an external dependency called tests which is the same name as the testing folder in my project. Because of this all of my project test imports fail to resolve. Having a folder called tests is a common practice found in many Python projects and I'm probably not the only one who is suffering from this side effect. Is there any way that the tests external dependency can be removed when installing redis-om?

Thanks!