When using pytest, the code runs normally, but there is no effect when executing the code with the Python command.