Remove errors from pytest decorators