Skip to content

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

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 June 26th, 2026):

Name                                                   Stmts   Miss  Cover   Missing
------------------------------------------------------------------------------------
src/scribe_data/check/check_project_metadata.py           75      1    99%   218
src/scribe_data/check/check_pyicu.py                      79     64    19%   30-36, 51-54, 69-83, 103-112, 137, 156-222, 226
src/scribe_data/check/check_query_forms.py               226     18    92%   307, 311, 319-320, 476-479, 522, 563-564, 573-574, 607-613, 642
src/scribe_data/cli/cli_utils.py                          87      9    90%   84-88, 161, 170-172, 192, 214
src/scribe_data/cli/contracts/check.py                    74     14    81%   79, 93, 113-118, 138-141, 145, 153-160
src/scribe_data/cli/contracts/export.py                   14      0   100%
src/scribe_data/cli/contracts/filter.py                  118     19    84%   103-126, 131-134, 304-318
src/scribe_data/cli/convert/to_csv_or_tsv.py              73     26    64%   74-75, 81-83, 89, 101-102, 153-186, 202-204
src/scribe_data/cli/convert/to_json.py                    71     17    76%   65, 68, 91-92, 101-102, 121-122, 137, 153-155, 161-162, 168-170
src/scribe_data/cli/convert/to_sqlite.py                 202     33    84%   55, 246-247, 286-287, 340, 343, 365-368, 412, 415-417, 424, 438-448, 459-462, 502-513, 521
src/scribe_data/cli/convert/wrapper.py                    18      2    89%   87, 98
src/scribe_data/cli/download/wikidata_lexeme_dump.py     111      8    93%   89, 193, 243, 289-295
src/scribe_data/cli/download/wiktionary_dump.py           63     56    11%   43-129
src/scribe_data/cli/get.py                                83      7    92%   127-136, 219, 293
src/scribe_data/cli/interactive/config.py                 17      0   100%
src/scribe_data/cli/interactive/execute.py                65     22    66%   58-59, 90-91, 98, 105-153
src/scribe_data/cli/interactive/prompt.py                 46      8    83%   65, 75-76, 140, 143, 181-184, 195
src/scribe_data/cli/interactive/run.py                    98     46    53%   64-65, 115-118, 129, 138-159, 168, 171-189, 192-195, 198-237, 252, 266-270, 295-302, 306
src/scribe_data/cli/list/data_types.py                    34      2    94%   37, 53
src/scribe_data/cli/list/languages.py                     14      0   100%
src/scribe_data/cli/list/wrapper.py                       18      0   100%
src/scribe_data/cli/main.py                              172     74    57%   463-464, 467-468, 478, 489-491, 498-685, 689
src/scribe_data/cli/total/print_values.py                 66     43    35%   57, 66, 75-78, 98-185
src/scribe_data/cli/total/query.py                        59      4    93%   72, 82, 146-147
src/scribe_data/cli/total/wrapper.py                      37      2    95%   104-107
src/scribe_data/cli/upgrade.py                            36      1    97%   84
src/scribe_data/cli/version.py                            30      1    97%   75
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                                 226     62    73%   58-59, 66-67, 73-74, 80-81, 95, 106, 146, 191-195, 334-339, 362-369, 400-410, 622-635, 640-658, 684-695, 760-772
src/scribe_data/wikidata/check_query/check.py            116     32    72%   290-338, 381
src/scribe_data/wikidata/check_query/query.py             16      0   100%
src/scribe_data/wikidata/check_query/sparql.py            27     15    44%   33-37, 75, 80-92
src/scribe_data/wikidata/parse_dump.py                   290    203    30%   137-138, 150-153, 176-210, 239-346, 369-375, 416-417, 425-463, 471, 490-505, 534-600, 662-707, 710-711, 723-731
src/scribe_data/wikidata/query_data.py                    97      0   100%
src/scribe_data/wikidata/wikidata_utils.py                37      5    86%   78, 91-92, 112, 114
src/scribe_data/wiktionary/parse_constants.py             15      2    87%   37-40
src/scribe_data/wiktionary/parse_translations.py         449     88    80%   73-77, 147, 174, 217, 225, 312, 342, 355, 365, 368, 492, 519-521, 525, 547, 598, 600, 707, 723, 727, 732, 737-738, 942-945, 956-990, 995, 1006, 1029-1030, 1081-1082, 1113, 1117, 1122, 1126, 1153, 1194-1199, 1210-1211, 1215, 1222, 1239-1240, 1286, 1304, 1318-1325, 1338, 1342-1343
------------------------------------------------------------------------------------
TOTAL                                                   3345    931    72%
Required test coverage of 70% reached. Total coverage: 72.17%

Contribution

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

Metadata

Metadata

Labels

Fields

No fields configured for Feature.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions