Skip to content

Test cleanup #33

@AustinCullar

Description

@AustinCullar

Go through the tests and see if any logic can be refined/abstracted. Some tests may be improved to increase test coverage as well.

As of writing, the test coverage stands at 97%:

Name                                 Stmts   Miss  Cover   Missing
------------------------------------------------------------------
src/__init__.py                          0      0   100%
src/astro_db.py                         56      3    95%   108, 116-117
src/data_collection/__init__.py          0      0   100%
src/data_collection/sentiment.py        46      1    98%   56
src/data_collection/yt_data_api.py      41      4    90%   73-76
src/log.py                              22      0   100%
src/tests/__init__.py                    0      0   100%
src/tests/conftest.py                   24      0   100%
src/tests/test_api_responses.py          2      0   100%
src/tests/test_astro_db.py              85      2    98%   18-19
src/tests/test_log.py                   20      0   100%
src/tests/test_sentiment.py             23      0   100%
src/tests/test_yt_data_api.py           35      1    97%   20
------------------------------------------------------------------
TOTAL                                  354     11    97%

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesttestingAdds new tests

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions