Closed
Conversation
- Updated test cases in `test_env_helper.py` to set environment variables as strings for boolean values. - Added multiple test cases in `test_lang_chain_agent.py` to validate content safety input and output handling, including blocking harmful content and ensuring proper memory management with chat history. - Enhanced `test_open_ai_functions.py` with tests for function calls and content safety validation, ensuring robust handling of various scenarios including unknown function calls and null answers. - Removed obsolete test file `test_azure_blob_storage_client.py`. - Expanded `test_content_safety_checker.py` to cover various scenarios for content safety checks, including handling harmful content, safe text validation, and error handling for HTTP responses.
…onse, and output parsing
…ion response, and output parsing" This reverts commit fab7790.
…onse, and output parsing
…age, and batch push results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request removes several test files and related test utilities from the codebase, as well as updates the Python test coverage settings in the workflow configuration. The changes primarily focus on cleaning up unused or unnecessary test code and refining test coverage reporting.
Test code and utility removal:
code/tests/chat_history/test_auth_utils.pyfile, which contained unit tests for EasyAuth authentication utilities.code/tests/conftest.py, which were used for setting up HTTPS mock servers in tests.code/tests/constants.pyfile, which defined various constants for test configuration.code/tests/request_matching.py.test_add_url_embeddings.py,test_azure_blob_storage.py, andtest_batch_push_results.py. [1] [2] [3]Workflow and coverage reporting:
.github/workflows/tests.ymlto use--cov=codeand--cov-report=term-missing, improving the accuracy and output of code coverage reporting.