fixing pytest coding style error