This test suite includes basic validation of three (3) of the Open Weather API queries
- Obtain the Current Weather By City
- Obtain the Current Weather By Latitude & Longitude
- Obtain the Current Weather By Zip Code
- Python 3 should be installed
- Clone the repository to your local environment
- Create a virtual environment in the local project folder
- python -m venv venv-ow
- Install the needed support packages
- pip install -r requirements.txt
- Sign up for an Open Weather API appId to execute the tests
- Update config.py with your appId
- Review the parametrize decorator & the listed data values
- Add/edit input values & expected results you wish to validate with
- To run all tests in the test suite:
- pytest tests/*
- To run a specific test in the test suite:
- pytest tests/OpenWeather/<test_case>.py
- To view a report of the test run:
- pytest tests/* -v --html report.html
- Click the specific test case in the report to view errors