michplunkett / ucpd-incident-scraper

This code is going to be used to scrape the UCPD Daily Incident page at a pre-determined frequency and store the incidents on a generic JSON data-store.
MIT License
3 stars 2 forks source link

Add testing functionality #26

Closed michplunkett closed 1 year ago

michplunkett commented 1 year ago

Describe your changes

Add testing for the application.

Checklist before requesting a review

(ucpd-incident-scraper-py3.11) michaelp@MacBook-Air-5 ucpd-incident-scraper % make test  
pytest -vs test/
============================================================================================= test session starts ==============================================================================================
platform darwin -- Python 3.11.4, pytest-7.4.2, pluggy-1.3.0 -- /Users/michaelp/Documents/GitHub/ucpd-incident-scraper/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/michaelp/Documents/GitHub/ucpd-incident-scraper
collected 1 item                                                                                                                                                                                               

test/test_headers.py::test_header_randomization PASSED

============================================================================================== 1 passed in 0.02s ===============================================================================================
(ucpd-incident-scraper-py3.11) michaelp@MacBook-Air-5 ucpd-incident-scraper %