-
Notifications
You must be signed in to change notification settings - Fork 47
Add Unit and Integration Tests #89
Copy link
Copy link
Open
Labels
GSSOC'25For issues and PRs related to GirlScript Summer of Code 2025.For issues and PRs related to GirlScript Summer of Code 2025.Level 2higher-priority tasks with complex issues to solve, more pointshigher-priority tasks with complex issues to solve, more points
Metadata
Metadata
Assignees
Labels
GSSOC'25For issues and PRs related to GirlScript Summer of Code 2025.For issues and PRs related to GirlScript Summer of Code 2025.Level 2higher-priority tasks with complex issues to solve, more pointshigher-priority tasks with complex issues to solve, more points
Problem: The project has no automated tests. This makes it risky to add new features or refactor code, as it's hard to verify that existing functionality hasn't broken.
Suggestion: Introduce a testing framework like pytest. Add unit tests for the functions in train_chatbot.py (e.g., clean_up_sentence, bag_of_words) and integration tests for the Flask API endpoint in main.py to ensure it returns correct responses.
PLEASE ASSIGN ME THIS ISSUE UNDER THE GSSOC' 25 LABEL. THANK YOU.