Skip to content

[Multiple assignees possible] Add missing tests to Scribe-Data #623

@andrewtavis

Description

@andrewtavis

Terms

Description

In #598 we made some progress on the tests for Scribe-Data 🧪🚀 This issue would continue on the effort to increase the testing coverage of Scribe-Data 😊

The current pytest-cov coverage report is (updated September 20th, 2025):

Name                                                    Stmts   Miss  Cover   Missing
-------------------------------------------------------------------------------------
setup.py                                                   17      3    82%   8-9, 62
src/scribe_data/check/check_project_metadata.py            76      1    99%   219
src/scribe_data/check/check_pyicu.py                       79     64    19%   30-36, 51-54, 69-83, 103-112, 135, 154-220, 224
src/scribe_data/check/check_query_forms.py                226     58    74%   308-309, 313, 321-322, 350-352, 476-479, 523, 545-623, 626-631, 638
src/scribe_data/cli/cli_utils.py                           78      4    95%   83-84, 179, 197
src/scribe_data/cli/contracts/check.py                     66     15    77%   80, 88, 108-113, 125-126, 130, 137-155, 159
src/scribe_data/cli/contracts/filter.py                   118     19    84%   102-130, 135-140, 303-316
src/scribe_data/cli/convert.py                            147     35    76%   69, 78-79, 104, 122, 153-155, 161-162, 168-170, 225, 236-237, 243-245, 251, 263-264, 314-329, 361-363, 418, 429
src/scribe_data/cli/download.py                           111      9    92%   83, 183-185, 235, 277-283
src/scribe_data/cli/get.py                                 85      8    91%   129-137, 212-215, 222, 290
src/scribe_data/cli/interactive.py                        215     58    73%   155-156, 182-183, 194, 211-226, 255-256, 290-291, 320-321, 328, 372-377, 437-475, 486, 495, 510-513, 589-613, 621-622, 626
src/scribe_data/cli/list.py                                76      2    97%   69, 85
src/scribe_data/cli/main.py                               162     68    58%   413-414, 417-418, 428, 439-441, 448-617, 621
src/scribe_data/cli/total.py                              159     29    82%   86, 95, 104-107, 128, 135-138, 171-189, 194-197, 245, 255, 319-320, 440-443
src/scribe_data/cli/upgrade.py                             36      6    83%   49-51, 56-58, 84
src/scribe_data/cli/version.py                             30      1    97%   75
src/scribe_data/load/data_to_sqlite.py                    177     45    75%   50, 199, 201, 213, 216, 238-241, 269-271, 278, 292-303, 311, 317-320, 360-376, 387-470, 476
src/scribe_data/load/send_dbs_to_scribe.py                 23      0   100%
src/scribe_data/unicode/generate_emoji_keywords.py         22      1    95%   43
src/scribe_data/unicode/process_unicode.py                 59     46    22%   15, 48-203
src/scribe_data/unicode/unicode_utils.py                    5      0   100%
src/scribe_data/utils.py                                  242     59    76%   51-52, 59-60, 66-67, 73-74, 88, 99, 180-184, 296-301, 324-331, 366-376, 727-740, 746-764, 793-801, 866-877
src/scribe_data/wikidata/check_query/check.py             117     32    73%   291-339, 382
src/scribe_data/wikidata/check_query/query.py              17      0   100%
src/scribe_data/wikidata/check_query/sparql.py             26     15    42%   32-36, 74, 79-91
src/scribe_data/wikidata/parse_dump.py                    365    129    65%   139-140, 152-155, 179, 192, 196, 205, 209, 263-269, 312, 316, 363-374, 388-401, 442-452, 493-494, 501-536, 546, 565-586, 631-632, 634, 638, 653-654, 682-683, 705-706, 722-723, 725, 729, 746-751, 823, 829-874, 877-878, 881-882, 901-903, 910-918
src/scribe_data/wikidata/query_data.py                     95      0   100%
src/scribe_data/wikidata/wikidata_utils.py                 38      2    95%   98, 112
src/scribe_data/wikipedia/extract_wiki.py                 178     78    56%   103, 135-136, 161-170, 192-197, 226-313, 368-371, 374-376, 380, 417-423, 439, 443, 446-447, 461-465
src/scribe_data/wikipedia/generate_autosuggestions.py      26      2    92%   56-59
src/scribe_data/wikipedia/process_wiki.py                 104     55    47%   57, 62, 122-131, 138, 259, 336-437
src/scribe_data/wiktionary/parse_mediaWiki.py              61      3    95%   63, 115-117
-------------------------------------------------------------------------------------
TOTAL                                                    3236    847    74%
Required test coverage of 70% reached. Total coverage: 73.83%

Contribution

Happy to work with people on PRs for this and potentially open a few myself! 🚀

Metadata

Metadata

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions