feat: backend unit test cases: part-I#84
Merged
Roopan-Microsoft merged 30 commits intohotfixfrom Apr 24, 2025
Merged
Conversation
…_factory.py and blob_azure.py file
…Modernize-your-code-solution-accelerator into psl-backend-unit-test
…Modernize-your-code-solution-accelerator into psl-backend-unit-test
…Modernize-your-code-solution-accelerator into psl-backend-unit-test
…Modernize-your-code-solution-accelerator into psl-backend-unit-test
Roopan-Microsoft
approved these changes
Apr 24, 2025
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Ritesh-Microsoft
pushed a commit
that referenced
this pull request
Oct 10, 2025
feat: backend unit test cases: part-I
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.
This pull request includes multiple changes aimed at improving test coverage, refactoring code for clarity, and updating dependencies. The changes include workflow updates, database-related improvements, and enhancements to testing infrastructure.
Workflow Updates:
psl-backend-unit-test) in the GitHub Actions workflow to ensure tests run on this branch. (.github/workflows/test.yml)srcdirectory instead ofsrc/tests/backendfor better alignment with the project structure. (.github/workflows/test.yml)Database Improvements:
# pragma: no coverto abstract methods inDatabaseBaseto exclude them from test coverage reporting. (src/backend/common/database/database_base.py) [1] [2]mainfunction indatabase_factory.pyfor better readability and moved theif __name__ == "__main__"block to the end of the file. (src/backend/common/database/database_factory.py) [1] [2]Dependency Updates:
AzureAIAgentto reflect changes in thesemantic_kernellibrary structure. (src/backend/sql_agents/helpers/agents_manager.py,src/backend/sql_agents/process_batch.py) [1] [2]Testing Enhancements:
/healthendpoint and backend routes. (src/tests/backend/app_test.py)unittestwithpytestfor configuration tests, added fixtures to clear environment variables, and improved test readability. (src/tests/backend/common/config/config_test.py)DatabaseBasefor testing and added async test cases for database methods. (src/tests/backend/common/database/database_base_test.py) [1] [2]database_factory_test.pyto isolate tests from external dependencies. (src/tests/backend/common/database/database_factory_test.py)