Por algum motivo, o pytest não está sendo reconhecido como comando pelo meu terminal. Estou com os seguintes problemas:
C:\Users\HenriquJ>python --version
Python 3.9.2
C:\Users\HenriquJ>pip install pytest
Requirement already satisfied: pytest in c:\python39\lib\site-packages (6.2.2)
Requirement already satisfied: iniconfig in c:\python39\lib\site-packages (from pytest) (1.1.1)
Requirement already satisfied: packaging in c:\python39\lib\site-packages (from pytest) (20.9)
Requirement already satisfied: colorama in c:\python39\lib\site-packages (from pytest) (0.4.4)
Requirement already satisfied: atomicwrites>=1.0 in c:\python39\lib\site-packages (from pytest) (1.4.0)
Requirement already satisfied: py>=1.8.2 in c:\python39\lib\site-packages (from pytest) (1.10.0)
Requirement already satisfied: toml in c:\python39\lib\site-packages (from pytest) (0.10.2)
Requirement already satisfied: pluggy<1.0.0a1,>=0.12 in c:\python39\lib\site-packages (from pytest) (0.13.1)
Requirement already satisfied: attrs>=19.2.0 in c:\python39\lib\site-packages (from pytest) (20.3.0)
Requirement already satisfied: pyparsing>=2.0.2 in c:\python39\lib\site-packages (from packaging->pytest) (2.4.7)
C:\Users\HenriquJ>pytest --version
'pytest' is not recognized as an internal or external command,
operable program or batch file.
O pytest já está instalado mas não consigo checar sua versão. Só consigo acessar o pytest utilizando o python -m da seguinte forma:
C:\Users\HenriquJ>python -m pytest --version
pytest 6.2.2
Da mesma forma, se eu executar o comando pytest no meu diretório, não consigo executar, tenho que fazer python -m pytest para rodar os testes. Estou fazendo algo de errado?