There is ALWAYS a potential for drug testing under Prop 36. It's unlikely, however, that you will be tested while in court. Regardless, not a bad idea to be safe rather than sorry. Why risk prison if it's just weed? Good luck.
You should also be aware that the metabolite of THC is stored in your body in fat cells for a long time after smoking. This is particularly true if you smoke regularly. There is always the danger that you'll get a high metabolite reading even if you haven't smoked for months. The Court should have the expertise to know you weren't high the day before but nothing is certain. Don't smoke between now and then.