I have some tests for which I need to create fully-functional test users. I do this by subclassing TestCase
in my tests, and initializing my test database in the setUp
method. However, in order to create fully functional users, I need to give them useful passwords by calling make_password
This is sufficiently computationally intensive to cause my development server (a Raspberry Pi) to take multiple seconds for each test.
My question is: can I force Django to just not hash the password during tests? This would significantly improve the performance of my test suite, and give me all the benefits that come along with that.