SAST Raising Issue with Assert statement in test code

I have a Python test case that is used in test step in a pipeline. That code uses ‘assert’. SAST is flagging that ‘assert’ as a problem because it doesn’t believe the code is a test case. How do I make SAST know it is in fact a test case and the assert should be ignored?