You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
After using docker-compose up to load the application in development mode, if any requests are processed by the backend, the test suite (i.e. python manage.py test -v 3) seems to fail to run within the student_explorer container.
django.db.utils.OperationalError: Problem installing fixture '/usr/src/app/student_explorer/fixtures/dev_users.json': Could not load auth.User(pk=1): (1205, 'Lock wait timeout exceeded; try restarting transaction')
Note that it should work if you simply run docker-compose up and immediately run the test suite within the container.
Theoretically, according to Django's "Writing and running tests" docs, a separate test database should be created and destroyed on each run. There seems to be some issue loading dev_users.json when this 'request then test' situation occurs.
The text was updated successfully, but these errors were encountered:
After using
docker-compose up
to load the application in development mode, if any requests are processed by the backend, the test suite (i.e.python manage.py test -v 3
) seems to fail to run within thestudent_explorer
container.Note that it should work if you simply run
docker-compose up
and immediately run the test suite within the container.Theoretically, according to Django's "Writing and running tests" docs, a separate test database should be created and destroyed on each run. There seems to be some issue loading
dev_users.json
when this 'request then test' situation occurs.The text was updated successfully, but these errors were encountered: