⬅︎ Back to Tip: creating a Xapian database in Python
Why would you mkdir a database's directory? Makes no sense.
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.
Comment
Why would you mkdir a database's directory? Makes no sense.
Replies
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.