The judge could give a shit. No, you will not be drug tested during your court hearing. Even if you are put on probation, you will not be tested at first. My PO's always gave me a little time to get clean before the first test. So, smoke up!