ooni / data

OONI Data CLI and Pipeline v5
https://docs.ooni.org/data
8 stars 4 forks source link

Refactor unittests to make use of measurement_uids #38

Closed hellais closed 11 months ago

hellais commented 11 months ago
codecov[bot] commented 11 months ago

Codecov Report

Attention: 21 lines in your changes are missing coverage. Please review.

Comparison is base (691db1c) 73.97% compared to head (c949b4e) 75.85%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #38 +/- ## ========================================== + Coverage 73.97% 75.85% +1.88% ========================================== Files 70 69 -1 Lines 5986 5989 +3 ========================================== + Hits 4428 4543 +115 + Misses 1558 1446 -112 ``` | [Files](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni) | Coverage Δ | | |---|---|---| | [oonidata/db/connections.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-b29uaWRhdGEvZGIvY29ubmVjdGlvbnMucHk=) | `78.16% <100.00%> (+13.10%)` | :arrow_up: | | [oonidata/transforms/\_\_init\_\_.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-b29uaWRhdGEvdHJhbnNmb3Jtcy9fX2luaXRfXy5weQ==) | `100.00% <100.00%> (+7.69%)` | :arrow_up: | | [tests/\_sample\_measurements.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-dGVzdHMvX3NhbXBsZV9tZWFzdXJlbWVudHMucHk=) | `100.00% <100.00%> (ø)` | | | [tests/test\_analysis.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-dGVzdHMvdGVzdF9hbmFseXNpcy5weQ==) | `100.00% <ø> (ø)` | | | [tests/test\_cli.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-dGVzdHMvdGVzdF9jbGkucHk=) | `100.00% <100.00%> (+5.00%)` | :arrow_up: | | [tests/test\_db.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-dGVzdHMvdGVzdF9kYi5weQ==) | `100.00% <100.00%> (ø)` | | | [tests/test\_scoring.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-dGVzdHMvdGVzdF9zY29yaW5nLnB5) | `100.00% <100.00%> (ø)` | | | [tests/test\_workers.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-dGVzdHMvdGVzdF93b3JrZXJzLnB5) | `98.05% <100.00%> (+0.58%)` | :arrow_up: | | [oonidata/apiclient.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-b29uaWRhdGEvYXBpY2xpZW50LnB5) | `28.00% <20.00%> (-42.00%)` | :arrow_down: | | [tests/conftest.py](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#diff-dGVzdHMvY29uZnRlc3QucHk=) | `87.30% <78.26%> (-10.98%)` | :arrow_down: | | ... and [1 more](https://app.codecov.io/gh/ooni/data/pull/38?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni) | | ... and [14 files with indirect coverage changes](https://app.codecov.io/gh/ooni/data/pull/38/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.