The hallucinogenic ingredient in mushrooms, psilocybin, is typically left out of routine drug testing. However, psilocybin and its metabolites can be detected in biological samples like urine and hair by use of specific examinations. It's worth noting that drug testing procedures may change in different settings, such as those associated with employment, sports, and the law. You should talk to the appropriate authorities or a medical expert if you have questions or concerns regarding drug testing, as they will know more about the substances being tested for and the time frames within which they can detect them.