Pytest -m connection: 'pytest' is not recognized as an internal or external command

pytest -m connection is not working for me. At one point earlier I was getting actual output (errors) from this, but now I’m getting this:

(mflix) C:\Users\karls\OneDrive\Documents\ds\courses\MongoDev\mflix-python>pytest -m connection
'pytest' is not recognized as an internal or external command,
operable program or batch file.

If if helps, my .ini file has this content:

[PROD]
SECRET_KEY = eignzxomw;pombzoekasdie025msmo4mM329tjaenasdlmcm23iomxmasmow3rit
# MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix-jr1wm.mongodb.net/test?retryWrites=true
MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix-jr1wm.mongodb.net

[TEST]
SECRET_KEY = eignzxomw;pombzoekasdie025msmo4mM329tjaenasdlmcm23iomxmasmow3rit
# MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix-jr1wm.mongodb.net/test?retryWrites=true
MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix-jr1wm.mongodb.net

Any suggestions?