Only require pytest if we are actually running the test command