Skip to content

Commit c3a3397

Browse files
authored
Remove unused test cases in bundle load (#8463)
Fixes #8453 ### Description Remove unused test cases in bundle load. https://github.com/Project-MONAI/MONAI/pull/8454/files#diff-5ad63db6f47bac69cb323c9d466ac0d8b86c9614cb7a96b9d69235feaa1c83d7 ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent 2d41655 commit c3a3397

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/bundle/test_bundle_download.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -316,19 +316,6 @@ def test_load_weights(self, bundle_files, bundle_name, repo, device, model_file)
316316
output_2 = model_2.forward(input_tensor)
317317
assert_allclose(output_2, expected_output, atol=1e-4, rtol=1e-4, type_test=False)
318318

319-
model_3 = load(
320-
name=bundle_name,
321-
model_file=model_file,
322-
bundle_dir=tempdir,
323-
progress=False,
324-
device=device,
325-
source="github",
326-
**net_args,
327-
)
328-
model_3.eval()
329-
output_3 = model_3.forward(input_tensor)
330-
assert_allclose(output_3, expected_output, atol=1e-4, rtol=1e-4, type_test=False)
331-
332319
@parameterized.expand([TEST_CASE_8])
333320
@skip_if_quick
334321
@skipUnless(has_huggingface_hub, "Requires `huggingface_hub`.")

0 commit comments

Comments
 (0)