⬅︎ Back to Tip: creating a Xapian database in Python
Because the test runner doesn't work like a normal Django startup. Without first doing this, the first test that tries to open the database in read-only mode will fail. Perhaps there is a more appropriate way but I couldn't immediately find one.
Why would you mkdir a database's directory? Makes no sense.
Comment
Because the test runner doesn't work like a normal Django startup. Without first doing this, the first test that tries to open the database in read-only mode will fail. Perhaps there is a more appropriate way but I couldn't immediately find one.
Parent comment
Why would you mkdir a database's directory? Makes no sense.