-
Notifications
You must be signed in to change notification settings - Fork 0
Add new tests for VCell DB and LLMs services, enhance VCell DB connectivity, and update GitHub workflow #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…cing assertions for biomodel and simulation fetching
…c for VCML file fetching
…neration and analysis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces unit test infrastructure and initial test coverage for the backend services. The main purpose is to establish a testing framework using pytest and pytest-asyncio, along with creating comprehensive unit tests for the VCell database service and LLM service functionalities.
- Adds pytest and pytest-asyncio dependencies for testing framework
- Creates new unit test files for core services (vcelldb_service and llms_service)
- Removes old API integration test files and replaces with focused unit tests
- Enhances error handling and logging in vcelldb_service with connectivity checks and retry logic
Reviewed Changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| backend/pyproject.toml | Adds pytest testing dependencies |
| backend/app/utils/tools_utils.py | Reformats import statements for better readability |
| backend/app/tests/vcelldb_api_tests.py | Removes old integration tests |
| backend/app/tests/tool_calling_tests.py | Removes old integration tests |
| backend/app/tests/test_vcelldb_service.py | Adds comprehensive unit tests for VCell DB service functions |
| backend/app/tests/test_llms_service.py | Adds unit tests for LLM service functions |
| backend/app/services/vcelldb_service.py | Enhances error handling with connectivity checks and retry logic |
| backend/app/services/llms_service.py | Improves logging in VCML analysis function |
| backend/app/services/knowledge_base_service.py | Minor formatting improvements |
| backend/app/schemas/tool_schema.py | Adds blank lines for better code structure |
| backend/app/routes/llms_router.py | Reformats function call for better readability |
| backend/app/main.py | Reformats import statements and adds blank lines |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Summary:
This PR mainly addresses the issue #8 by implementing these changes: