Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not work with coverage to setup test database #66

Open
foxracle opened this issue Dec 3, 2024 · 0 comments
Open

can not work with coverage to setup test database #66

foxracle opened this issue Dec 3, 2024 · 0 comments

Comments

@foxracle
Copy link

foxracle commented Dec 3, 2024

Describe the bug
we have two databases in our django application. it works well to run command "python manage.py runserver 0.0.0.0:8000"
but it stuck when run coverage "coverage run manage.py test --with-xunit" with the message below.
coverage run manage.py test --with-xunit
nosetests --with-xunit --verbosity=1
Using existing test database for alias 'default'...
Using existing test database for alias 'price'...

in fact, the test_default db is done and for the test_price db, the db is created but no one table is created. it seems that the setup process is halted by something when creating table for test_price db.

django's backend
Switch to django's backend (django.db.backends.postgresql), everything is ok.

Environment

  • Python Version: 3.8.19
  • Django Version: 2.2.28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant