Execute the following commands in the root of the project. This must be done BEFORE you open the project in PyCharm:
python3 -m venv .envto create a virtual environmentsource .env/bin/activateto activate the virtual environmentpip install -r requirements.txtto install the dependenciespip install -e .to install the source as an editable package
To tell PyCharm to use pytest:
- Open Preferences (CMD-,)
- Goto 'Tools/Python Integrated Tools'
- Change 'Default Test Runner' to 'py.test'