To pass a test if a condition is true using pytest, you can use the assert statement in your test function. Within the function, you can check if the condition is true and if it is, use the assert statement to pass the test. For example, you can write a test function that checks if a given number is greater than 10 and then use the assert statement to pass the test if the condition is true.