I have done programming assessments, but I've probably only done 3 in the last 20 years, and those I strictly limited to 1 hour and told the recruiters that I wouldn't spend any longer than that.
I've also flat out refused to proceed with least 5 jobs when recruiters have contacted me, tried to tempt me with a job and then sent through a 3 hour coding test. I've got better things to do with my free time than toy programming puzzles.