Repository navigation
Replies: 1 comment
|
🤖 Written by Claude Opus 5.5 via Claude Code for the pytest maintainers; I prompted it, it did the work, I read it. This is a database configuration issue, not pytest: inside the container Postgres is not on a local socket. Set |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've docker-compose configuration for django and postgres, it works fine. However, when I'm trying to run pytest inside a django container it fails with an error:
This is actually true, there is no such file in django container, it's inside the psql container, but I don't understand what to do with this error. I checked that test database created.
I can fix this error if add this fixture in
conftest.pyBut using this approach it using my actual database, not the "test_*" one.
I don't think that this is docker-compose problem because other than tests it works fine.
All reactions