Commit Graph

5 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 6aca1fae5f fix tests? 2025-06-09 10:24:02 -04:00
hyusap 280f4215a3 Update documentation and improve code consistency across various modules
- Added missing newlines and improved formatting in `CLAUDE.md` for better readability.
- Updated command instructions in the development guide to use `uv run` for running the server and tests.
- Enhanced type hinting in `consumer.py` for better clarity on the `facts` variable.
- Corrected a typo in the docstring of the `chat` function in `agent.py`.
- Refined type checks in `sessions.py` to use `isinstance` for better practice.
- Improved message formatting in `history.py` to ensure consistent output.
- Cleaned up test files by removing unnecessary imports and improving readability.

These changes enhance the overall clarity and maintainability of the codebase.
2025-06-06 18:16:50 -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