How is the structure of the in-memory test sqlite3 database determined?

When I follow along lesson 3, I'm stumbling across the following error when creating a test User.

DatabaseError: no such table: auth_user

Should there be an equivalent of syncdb run on the in-memory sqlite3 db before the tests are run?

Sorry You must be a logged in, registered user to answer a question.

Answers

Congratulations, you found a mistake :)

Change the import line at the top of testing.py to from .base import * (I know, I know).

You're getting that error because INSTALLED_APPS is missing from the test settings.

Thank you! I works now. (It initially complained about SECRET_KEY, so I added that to the import, but this error didn't make it so obvious.)
Harish Narayanan on