-
Notifications
You must be signed in to change notification settings - Fork 22
chore: Dev merge to Main #242
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
Open
Shreyas-Microsoft
wants to merge
29
commits into
main
Choose a base branch
from
dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+13,538
−321
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
8a0ae2b
Add unit tests for backend-api
Shreyas-Microsoft 362ac1f
add asyncio package
Shreyas-Microsoft 98ee6f2
Add processor tests
Shreyas-Microsoft 431830e
update failing tests
Shreyas-Microsoft 3bbe8e8
add more coverage to processor
Shreyas-Microsoft 82d8bc6
fix telemetry test
Shreyas-Microsoft cccde5f
fix copilot comments and pylint
Shreyas-Microsoft 62dc496
Merge branch 'dev' into psl-unit-testing
Shreyas-Microsoft 829c51b
ci: simplify coverage comment to badge + total + test summary
Shreyas-Microsoft 3ecc13d
ci: restore coverage report dropdown in PR comment
Shreyas-Microsoft 775c5e8
ci: strip per-file details from coverage XML for clean PR comment
Shreyas-Microsoft 0fb1737
ci: use text coverage summary for TOTAL-only report dropdown
Shreyas-Microsoft 0810e83
fix: address PR review comments
Shreyas-Microsoft 63642b6
ci: match reference repo coverage comment format
Shreyas-Microsoft d86bcdc
pushing test.yml
Shreyas-Microsoft 6f0a5b0
test: lift coverage above 82% gate for processor and backend-api
Shreyas-Microsoft 5457838
test: address Copilot review feedback (PR #211)
Shreyas-Microsoft 7d45874
test: address Copilot review feedback on test hygiene
Shreyas-Microsoft 3cd1758
test: fix flake8 E305 in test_sk_logic_base.py
Shreyas-Microsoft f42b4f3
fix(infra): remove enableAnalyticalStorage on Cosmos DB account creation
Shreyas-Microsoft 762f7b7
fix: upgrade vulnerable dependencies (urllib3, python-multipart, auth…
Dhanushree-Microsoft 4ff9c0f
Merge pull request #211 from microsoft/psl-unit-testing
Roopan-Microsoft dd2da35
chore(infra): rebuild main.json with bicep 0.43.8 (restore version)
Shreyas-Microsoft 0f6b68e
Merge pull request #239 from microsoft/psl-sw/fix-cosmos-analytical-s…
Roopan-Microsoft b39d10e
fix: add name/version/private to processor package.json to align with…
Dhanushree-Microsoft 1960de3
fix: pin override-dependencies to exact versions in processor pyproje…
Dhanushree-Microsoft 5b6f6fa
Merge pull request #241 from microsoft/con-migdhmoh
Roopan-Microsoft 222b22c
test: resolve PR #242 review comments
Shreyas-Microsoft 89b2064
Merge pull request #243 from microsoft/psl-sw/pr242-resolve-comments
Roopan-Microsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| """Tests for application.Application bootstrap.""" | ||
|
|
||
| from application import Application | ||
| from libs.base.typed_fastapi import TypedFastAPI | ||
| from libs.services.interfaces import IDataService, IHttpService, ILoggerService | ||
| from libs.services.process_services import ProcessService | ||
|
|
||
|
|
||
| def test_application_initializes_typed_fastapi(): | ||
| app = Application() | ||
| assert isinstance(app.app, TypedFastAPI) | ||
| assert app.app.title == "FastAPI Application" | ||
| assert app.app.version == "1.0.0" | ||
|
|
||
|
|
||
| def test_application_sets_app_context_on_app(): | ||
| app = Application() | ||
| assert app.app.app_context is app.application_context | ||
|
|
||
|
|
||
| def test_application_registers_core_services(): | ||
| app = Application() | ||
| ctx = app.application_context | ||
| assert ctx.get_service(ILoggerService) is not None | ||
| assert ctx.get_service(IHttpService) is not None | ||
| assert ctx.get_service(IDataService) is not None | ||
| assert ctx.get_service(ProcessService) is not None | ||
|
|
||
|
|
||
| def test_application_includes_routers(): | ||
| app = Application() | ||
| paths = {route.path for route in app.app.routes} | ||
| # router_files | ||
| assert "/api/file/upload" in paths | ||
| # router_process | ||
| assert "/api/process/create" in paths | ||
| # http_probes | ||
| assert "/health" in paths |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.