zohowie is right....I highly doubt that you will be drug tested right after court. If you aren't ordered a drug class during court then you might be able to get out of it if they do end up testing you and you come up negative. Never admit to smoking if you don't have to. Going in clean enough to pass a test is generally always safe thing to do. Court related tests are generally always observed. I think there is a chance to dilute but you have to put forth the effort to practice a few times before.