Skip to content

test : added pytest unit tests for model_loader module#1882

Open
tmdeveloper007 wants to merge 1 commit into
gopaljilab:mainfrom
tmdeveloper007:#1873
Open

test : added pytest unit tests for model_loader module#1882
tmdeveloper007 wants to merge 1 commit into
gopaljilab:mainfrom
tmdeveloper007:#1873

Conversation

@tmdeveloper007

@tmdeveloper007 tmdeveloper007 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

test : added pytest unit tests for model_loader module

Changes

Test coverage for the relevant module/middleware.

Impact

No production changes. Test coverage only.

Closes ##1873

Note

Assign to tmdeveloper007

- Test FileNotFoundError for nonexistent model path
- Test singleton caching behavior via joblib mock injection
- Test PermissionError when signature verification fails
- Test RuntimeError when both joblib and safe_pickle_load fail
- Test get_model() delegates to load_model with default path
@github-actions github-actions Bot added the type:testing Adding, updating, or fixing unit/integration tests. label Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:testing Adding, updating, or fixing unit/integration tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant