-
Notifications
You must be signed in to change notification settings - Fork 903
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
Reimplement tests for queries and operations #443
Reimplement tests for queries and operations #443
Conversation
Reimplement tests for queries and operations in `agents-api/agents_api/models` subdirectories using the new code. * **agents-api/agents_api/models/agent/test_agent_queries.py** - Uncomment import statements and test functions. - Update test functions to use new query functions. - Ensure tests pass with new code. * **agents-api/agents_api/models/docs/test_docs_queries.py** - Uncomment import statements and test functions. - Update test functions to use new query functions. - Ensure tests pass with new code. * **agents-api/agents_api/models/entry/test_entry_queries.py** - Uncomment import statements and test functions. - Update test functions to use new query functions. - Ensure tests pass with new code. * **agents-api/agents_api/models/execution/test_execution_queries.py** - Uncomment import statements and test functions. - Update test functions to use new query functions. - Ensure tests pass with new code. * **agents-api/agents_api/models/session/test_session_queries.py** - Uncomment import statements and test functions. - Update test functions to use new query functions. - Ensure tests pass with new code. * **agents-api/agents_api/models/task/test_task_queries.py** - Uncomment import statements and test functions. - Update test functions to use new query functions. - Ensure tests pass with new code. * **agents-api/agents_api/models/tools/test_tool_queries.py** - Uncomment import statements and test functions. - Update test functions to use new query functions. - Ensure tests pass with new code. * **agents-api/agents_api/models/user/test_user_queries.py** - Uncomment import statements and test functions. - Update test functions to use new query functions. - Ensure tests pass with new code. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/julep-ai/julep?shareId=XXXX-XXXX-XXXX-XXXX).
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.
👍 Looks good to me! Reviewed everything up to f5061dc in 39 seconds
More details
- Looked at
3104
lines of code in8
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/models/user/test_user_queries.py:47
- Draft comment:
The tests for creating a user twice and updating a non-existent user expect exceptions to be raised. Ensure that thecreate_user
andupdate_user
functions are implemented to actually throw exceptions when expected, otherwise these tests might pass incorrectly. - Reason this comment was not posted:
Confidence of 0% on close inspection, compared to threshold of 50%.
Workflow ID: wflow_aF2S5cDXCh8chFsx
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Signed-off-by: Diwank Tomer <[email protected]>
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.
👍 Looks good to me! Incremental review on ccef242 in 43 seconds
More details
- Looked at
3357
lines of code in16
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/models/execution/create_execution.py:41
- Draft comment:
The use ofAnnotated
withdict_like
for thedata
parameter is a good practice for ensuring that the data conforms to the expected structure ofCreateExecutionRequest
. This helps in maintaining the integrity of the data being processed. - Reason this comment was not posted:
Confidence changes required:0%
The use ofAnnotated
along withdict_like
validator in the function signature fordata
parameter is a good practice as it ensures the data passed to the function adheres to the structure defined byCreateExecutionRequest
model. This is a positive aspect as it enforces type safety and data validation at the function parameter level, reducing the chances of runtime errors due to unexpected data structures.
Workflow ID: wflow_3dd5VevbuqdLJI8e
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
50c898e
into
dev-tasks-disable-routes
Reimplement tests for queries and operations in
agents-api/agents_api/models
subdirectories using the new code.agents-api/agents_api/models/agent/test_agent_queries.py
agents-api/agents_api/models/docs/test_docs_queries.py
agents-api/agents_api/models/entry/test_entry_queries.py
agents-api/agents_api/models/execution/test_execution_queries.py
agents-api/agents_api/models/session/test_session_queries.py
agents-api/agents_api/models/task/test_task_queries.py
agents-api/agents_api/models/tools/test_tool_queries.py
agents-api/agents_api/models/user/test_user_queries.py
For more details, open the Copilot Workspace session.
Summary:
Reimplemented tests for queries and operations in
agents-api/agents_api/models
subdirectories using new query functions.Key points:
Generated with ❤️ by ellipsis.dev