Commit Graph

3 Commits

Author SHA1 Message Date
hyusap c187a029ea Refactor test configuration to conditionally set fake API keys and improve LLM call mocking
- Updated `conftest.py` to set fake API keys only if real ones are not available, enhancing test flexibility.
- Refactored the `mock_llm_calls` fixture to conditionally mock LLM calls based on the use of real APIs, improving test isolation and reliability.
- Ensured that when real APIs are used, the mocks return empty values to allow tests to run without interference.

These changes enhance the robustness of the testing framework and ensure better handling of API dependencies.
2025-06-09 11:43:33 -04:00
hyusap 8ff2baa702 Enhance deriver tests with improved mocking and environment configuration
- Added environment variables for fake API keys in `conftest.py` to facilitate testing.
- Refactored mock functions in tests to utilize global mocks for LLM calls, improving consistency and reducing redundancy.
- Updated various test cases to rely on the new mocking structure, ensuring accurate simulation of LLM responses and fact extraction.
- Removed direct calls to model clients in tests, replacing them with mocks to streamline test execution and maintain isolation.
2025-06-06 15:28:50 -04:00
hyusap 67d3a3e9f1 unit test the deriver 2025-06-06 13:48:10 -04:00