Closed Holdrick closed 2 years ago
Looks like theres a conflict with the old test. The test was written before token authentication so I reworked it to pass with the present production code
The unit tests are mostly independent. There's only a couple things in main that could be refactored:
Contributes to #38 (add issue number here. i.e.
#302
)What did you do?
Added unit tests to the analyse_text and check_words methods in main.py
Extracted db creation to a method that's called in each required method so the db creation can be mocked out in unit tests
Why did you do it?
Adding unit tests helps protect us from future changes that break previous ones
How have you tested it?
I did some manual tests to see if my change broke anything
Were docs updated if needed?
[ ] No
[ ] Yes
[x] N/A
Type of change
Checklist: