Skip to content

refactor: move remaining network-dependent tests to integration#254

Merged
timenick merged 1 commit into
mainfrom
zhiwang/move-network-tests-to-integration
Apr 7, 2026
Merged

refactor: move remaining network-dependent tests to integration#254
timenick merged 1 commit into
mainfrom
zhiwang/move-network-tests-to-integration

Conversation

@timenick
Copy link
Copy Markdown
Collaborator

@timenick timenick commented Apr 7, 2026

Summary

  • Move test_text_classification.py from tests/unit/eval/ to tests/integration/datasets/ — every test downloads GLUE/MRPC via load_dataset
  • Move TestResolveTaskAndModelClass and TestConflictScenarios (13 tests using AutoConfig.from_pretrained()) from tests/unit/loader/test_hf_model_class_mapping.py to tests/integration/loader/test_hf_model_class_mapping.py — these were missed in Move misplaced integration/e2e tests out of tests/unit/ #95

Fixes #253

Move tests that call HuggingFace Hub APIs out of tests/unit/:

- test_text_classification.py → tests/integration/datasets/
  (every test downloads GLUE/MRPC via load_dataset)

- TestResolveTaskAndModelClass and TestConflictScenarios from
  test_hf_model_class_mapping.py → tests/integration/loader/
  (13 tests call AutoConfig.from_pretrained, missed in #95)

Fixes #253
@timenick timenick requested a review from a team as a code owner April 7, 2026 07:08
@timenick timenick enabled auto-merge (squash) April 7, 2026 07:12
@timenick timenick merged commit 7512c96 into main Apr 7, 2026
9 checks passed
@timenick timenick deleted the zhiwang/move-network-tests-to-integration branch April 7, 2026 07:14
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.

Unit tests with network calls cause flaky failures (504 timeouts)

2 participants