- Pycharm IDE
- Python 3.7 /3.8 installed
Clone the repo and save folders with the required code
for more info: https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html
- Right click on the project folder in pycharm
- Select
Open in terminal
- Should automatically be picked up by Pycharm when opening the following file :
main.py
- run the command
pip install .in the terminal
- Open
config.inifile and set test environment tolive - Click on terminal and run
python -m pytest tests/
- try to update
pluggy dependency - run the following command in terminal
pip install -U pluggy
OR
pip3 install -U pluggy
- This should solve the issue and tests should now run!
-
need to add
newline=''(empty string) parameter
- Open
test_html_object_manager.py - Ensure to change
HtmlObjectManager
TO
HttpManager
- Open
test_html_object_manager.py - Go to line 26 and 27
def test_html_manager_returns_html_from_url(self, html_manager_object):
assert 'Tracking the IT job market' in html_manager_object.html
-
Ensure 'Job Market' is capitilized as this is the way it is in site html
