#20917: Change the password hashers when testing
-------------------------------------+-------------------------------------
Reporter: mjtamlyn | Owner:
Type: New feature | ashchristopher
Component: Testing framework | Status: assigned
Severity: Normal | Version: master
Keywords: | Resolution:
Has patch: 0 | Triage Stage: Accepted
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by mjtamlyn):
I don't personally feel that this is any different to using an in memory
database by default for SQLite rather than a file. The performance is
different to in production (anyway, why are you using SQLite in
production?), but this is what you expect from testing. I agree there are
a number of ways to override settings, and there's the slight issue of
what to do if someone wants to use something different, but in my
experience I have *always* had to set this for tests to get any kind of
performance. It's not a last-resort method to speed tests up, it's the
first thing you should do, and as we continue to increase the iterations
it will get worse.
There are a small number of users who may run into this problem, but for
90%+ of users it saves remembering to set it up, or not knowing about it
at all, deciding the tests are too slow to run, getting bored and never
writing any. It's not a marginal gain - on small examples where tests
create users with passwords and log them in to the site I was seeing a 6x
speed increase.
So in summary:
- Most users won't notice
- We need a mechanism so that those who do (and don't want it) can disable
it
- Will save most projects a few lines of code
- Will help adoption of testing as it gives a better initial impression
--
Ticket URL: <https://code.djangoproject.com/ticket/20917#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.f6a9a2e99c6d96b096bafa943365eef1%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.