Add comprehensive unit tests for BuddAI functionality

- Introduced 16 additional coverage tests in `test_additional_coverage.py` to enhance overall test coverage.
- Added 15 extended feature tests in `test_extended_features.py` to validate new functionalities.
- Implemented 27 final coverage tests in `test_final_coverage.py` to achieve a total of 100 tests.
- Created 2 fallback logic tests in `test_fallback_logic.py` to ensure proper fallback behavior based on confidence scores.
- Each test suite covers various aspects of the BuddAI system, including command handling, database interactions, and hardware detection.
This commit is contained in:
JamesTheGiblet 2026-01-07 19:48:24 +00:00
parent f9fd27d228
commit 27601aa2ba
34 changed files with 5022 additions and 2921 deletions

View file

@ -73,7 +73,8 @@ class TestBuddAIIntegration(unittest.TestCase):
"""GET / returns 200 and status"""
response = client.get("/")
self.assertEqual(response.status_code, 200)
self.assertIn("BuddAI API Online", response.text)
self.assertIn("BuddAI API", response.text)
self.assertIn("Online", response.text)
def test_chat_flow(self):
"""POST /api/chat returns response"""