Getting errors attempting to run tests. #902
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
it is a django issue, this type of error usually appears when the DJANGO_SETTING_MODULE is not set properly. |
Beta Was this translation helpful? Give feedback.
-
An update: I was comparing my settings file with the one in the repository and discovered that the missing models issue is reproducible 100% of the time when DEBUG_TOOLBAR is True and DEBUG = False. When the DEBUG_TOOLBAR is False, I don't get the missing models issue, but Sqlite3 complains about locked databases. For this issue, I would probably need to install postgres or another database to get around sqlite's limitations. It does appear that the tests are being run in parallel and sqlite3 cannot handle that many connections at once. There probably is also a setting to make all requests to sqlite3 be handled synchronously but I'll have to look at that. |
Beta Was this translation helpful? Give feedback.
An update: I was comparing my settings file with the one in the repository and discovered that the missing models issue is reproducible 100% of the time when DEBUG_TOOLBAR is True and DEBUG = False. When the DEBUG_TOOLBAR is False, I don't get the missing models issue, but Sqlite3 complains about locked databases. For this issue, I would probably need to install postgres or another database to get around sqlite's limitations. It does appear that the tests are being run in parallel and sqlite3 cannot handle that many connections at once. There probably is also a setting to make all requests to sqlite3 be handled synchronously but I'll have to look at that.