Skip to content

test(models): guard offline model construction - #23

Open
Soumya080 wants to merge 2 commits into
ML4SCI:mainfrom
Soumya080:test/offline-model-construction
Open

Soumya080 wants to merge 2 commits into
ML4SCI:mainfrom
Soumya080:test/offline-model-construction

Conversation

@Soumya080

Copy link
Copy Markdown

Summary

Adds offline regression tests verifying that constructing VLLMModel and LiteLLMModel does not trigger HTTPX request sends.

Implementation

  • Intercepts synchronous and asynchronous HTTPX client send methods.
  • Tests both model wrappers using parametrized pytest cases.
  • Requires no running model server or API credentials.

Verification

  • Targeted tests: 2 passed
  • Full test suite: 123 passed
  • Ruff lint and formatting checks passed

Related to #19. Complements #22 by covering network-request behavior during model construction, separate from provider configuration tests.

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