data-liberation-project / aphis-inspection-reports

Inspection data and PDFs from the USDA's Animal and Plant Health Inspection Service.
13 stars 3 forks source link

Added first pytest run #16

Closed palewire closed 1 year ago

palewire commented 1 year ago

Interesting bug. The test runs fine in my Codespace.

@palewire ➜ /workspaces/aphis-inspection-reports (pytest) $ pytest tests -sv --cov
===================================================================================== test session starts =====================================================================================
platform linux -- Python 3.9.15, pytest-7.2.0, pluggy-1.0.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /workspaces/aphis-inspection-reports
plugins: cov-4.0.0
collected 1 item                                                                                                                                                                              

tests/test_lib.py::test_filename_from_url PASSED

---------- coverage: platform linux, python 3.9.15-final-0 -----------
Name                      Stmts   Miss  Cover
---------------------------------------------
scripts/__init__.py           0      0   100%
scripts/lib/__init__.py       0      0   100%
scripts/lib/aphis.py         57     32    44%
tests/__init__.py             0      0   100%
tests/test_lib.py             3      0   100%
---------------------------------------------
TOTAL                        60     32    47%
palewire commented 1 year ago

I just fell behind main. Should be fine now.

jsvine commented 1 year ago

Lovely, thanks!