SIS-Team-24 / 2023-SIS-Team-24

Using Natural Language Processing, Text Insights examines and provides insights to text.
1 stars 0 forks source link

FastAPI testing summary #178

Closed henrygoodman closed 1 year ago

henrygoodman commented 1 year ago

Semi-fixes #129 (there is more work to be done for full test coverage)

Tests the summary API with basic inputs (short, medium, long), using the default summary length option.

Simply tests the API call is successful, and returns a JSON object with summary key, which is text that has a length of at most 80% the length of original input.

Additional tests in future can test accuracy, performance (timing), testing length when the summary_len_option varies, etc.