okfn-brasil / serenata-toolbox

📦 pip module containing code shared across Serenata de Amor's projects | ** Este repositório não recebe atualizações frequentes **
MIT License
154 stars 69 forks source link

Test async part of Datasets module #39

Open cuducos opened 7 years ago

cuducos commented 7 years ago

If #38 is merged the coverage points to a non-tested part that is basically the coroutines:

Name                                          Stmts   Miss  Cover
-----------------------------------------------------------------
serenata_toolbox/datasets/__init__.py            26      0   100%
serenata_toolbox/datasets/contextmanager.py       5      0   100%
serenata_toolbox/datasets/downloader.py          58     25    57%
serenata_toolbox/datasets/local.py               15      0   100%
serenata_toolbox/datasets/remote.py              21      0   100%
-----------------------------------------------------------------
TOTAL                                           125     25    80%

I opened the PR as it is because I've never written unit tests for asyncio and studying that was postponing the new module further than I could handle. Sorry about that, guys.