Ask for open source projects, Give an on the spot code test.
I am a senior-level Django programmer, I believe I have the authority to speak if a test I'm taking isn't helpful for skills required by the role.
First, they ask you to refactor a theoretical problem on the spot. I doubt the efficacy of these types of tests - refactoring that quickly in the real world would lend to premature optimization. Second, the test isn't related to the rigors of Django Development, or for that matter, any programming workplace - even high frequency traders have time to profile applications and establish a feedback loop. Third, it isn't related Django, the role being filled.
Interviewer appeared to take offense to me stating the test didn't indicate the nature of the role being filled. I'm apparently the first person to break the news to him. I was left with the impression the interviewer lacked consideration for me as an applicant, forcing me through a sham test that didn't relate to the role, let me show my strengths, enthusiasm, ability, or willingness to contribute.
Asking for refactors under pressure is not indicative of a programming workplace - it is a game. It's teasing, and rude on the part of the interviewer, not the other way around. It degrades candidates and causes imposter syndrome.
The other problem is they claimed to me the sham code test was a way to gauge personality. So even though you're exhausted of interviewers giving quizzes that have nothing to do with the day-to-day role, they are going to use your reaction calling it bunk against you. And who wins? Streetwise careerists and scammers that excel in only passing interviews, saying the "right" thing, and code golf rather than passionate people in open source and Django who know succeed at the job requirements.