cernopendata / cernopendata-client

CERN Open Data command-line client
http://cernopendata-client.readthedocs.io/
GNU General Public License v3.0
10 stars 9 forks source link

tests: complete code coverage #73

Closed tiborsimko closed 3 years ago

tiborsimko commented 3 years ago

The code coverage looks great. We can still write more tests for not-tested else branches and stuff. No priority, something to be done on the side when time permits.

$ python setup.py test
...
----------- coverage: platform linux, python 3.8.6-final-0 -----------
Name                                Stmts   Miss  Cover   Missing
-----------------------------------------------------------------
cernopendata_client/__init__.py         4      0   100%
cernopendata_client/cli.py            137     16    88%   48, 54, 105-110, 112, 232-237, 282-285, 300-304, 342-349
cernopendata_client/config.py           7      0   100%
cernopendata_client/downloader.py      50      0   100%
cernopendata_client/printer.py         17      1    94%   37
cernopendata_client/searcher.py       104     22    79%   24-26, 41-46, 55-64, 98, 111-112, 127-133, 156, 203-207, 209
cernopendata_client/utils.py           11      0   100%
cernopendata_client/validator.py       33      2    94%   82-89
cernopendata_client/verifier.py        40      0   100%
cernopendata_client/version.py          3      0   100%
-----------------------------------------------------------------
TOTAL                                 406     41    90%