-
Notifications
You must be signed in to change notification settings - Fork 94
LCORE-1438: minor fixes #1317
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
Merged
Merged
LCORE-1438: minor fixes #1317
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c082c14
Configuration attributes reading
tisnik aa5f0ef
Timezone specification
tisnik 543d203
Removed empty string param
tisnik 4a6e0de
Simplified headers storing
tisnik 1e1dba6
Timezone specification
tisnik 1a79905
New Ruff rule
tisnik 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
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
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
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.
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.
Dead code: assertion after exception-raising property access.
The assertion
assert c is not Noneon line 450 will never execute because accessingcfg.configurationon line 449 raisesLogicError(which is what this test verifies). The same pattern repeats in the subsequent test functions.The previous pattern using
_ = cfg.propertywas sufficient and clearer about intent.🧹 Suggested fix to remove dead code
def test_configuration_not_loaded() -> None: """Test that accessing configuration before loading raises an error.""" cfg = AppConfig() with pytest.raises(LogicError, match="logic error: configuration is not loaded"): - c = cfg.configuration - assert c is not None + _ = cfg.configuration # pylint: disable=pointless-statementApply similar changes to:
test_service_configuration_not_loaded(lines 457-458)test_llama_stack_configuration_not_loaded(lines 465-466)test_user_data_collection_configuration_not_loaded(lines 473-474)test_mcp_servers_not_loaded(lines 481-482)test_authentication_configuration_not_loaded(lines 489-490)test_customization_not_loaded(lines 497-498)📝 Committable suggestion
🤖 Prompt for AI Agents