Skip to content

test: remove test for coverage test#8

Closed
Pavan-Microsoft wants to merge 6 commits intodevfrom
pk-unittest-dev-cwyd-test
Closed

test: remove test for coverage test#8
Pavan-Microsoft wants to merge 6 commits intodevfrom
pk-unittest-dev-cwyd-test

Conversation

@Pavan-Microsoft
Copy link
Owner

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:

  • Deleted the entire code/tests/chat_history/test_auth_utils.py file, which contained unit tests for EasyAuth authentication utilities.
  • Removed the SSL and HTTP server fixtures from code/tests/conftest.py, which were used for setting up HTTPS mock servers in tests.
  • Deleted the code/tests/constants.py file, which defined various constants for test configuration.
  • Removed the request matching utility and related classes from code/tests/request_matching.py.
  • Deleted several test files related to core backend functionality, including test_add_url_embeddings.py, test_azure_blob_storage.py, and test_batch_push_results.py. [1] [2] [3]

Workflow and coverage reporting:

  • Updated the Python test command in .github/workflows/tests.yml to use --cov=code and --cov-report=term-missing, improving the accuracy and output of code coverage reporting.

- 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.
…ion response, and output parsing"

This reverts commit fab7790.
@Pavan-Microsoft Pavan-Microsoft deleted the pk-unittest-dev-cwyd-test branch January 16, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant