Closed demilolu closed 2 years ago
Our code currently lacks unit testing, which is needed for test driven development practices: easy debugging, functional testing, etc.
Provide unit tests for various components in the Legit Info repository.
Refer to Django Testing page and implement the following tests:
Add state
Get data
Extract data
At least 60% code coverage by unit tests
:wave: Hi! This issue has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.
Background on the problem the feature will solve/improved user experience
Our code currently lacks unit testing, which is needed for test driven development practices: easy debugging, functional testing, etc.
Describe the solution you'd like
Provide unit tests for various components in the Legit Info repository.
Tasks
Refer to Django Testing page and implement the following tests:
Add state
custom command: https://github.com/Call-for-Code-for-Racial-Justice/Legit-Info/blob/main/cfc_app/tests.py for sample testsGet data
custom commandExtract data
custom commandRelated Issues
Acceptance Criteria
At least 60% code coverage by unit tests