Question: pytest is not recognized in pycharm?
Answer: Enable Pytest for you project Open the Settings/Preferences | Tools | Python Integrated Tools settings dialog as described in Choosing Your Testing Framework. In the Default test runner field select pytest. Click OK to save the settings.