Skip to content

Commit 79f9ad9

Browse files
authored
Fix unittest (#8161)
Fixes #8160 ### Description A few sentences describing the changes proposed in this pull request. ### 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 a14a9d7 commit 79f9ad9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

monai/networks/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def convert_to_onnx(
697697
torch.onnx.export(
698698
mode_to_export,
699699
onnx_inputs,
700-
f=f,
700+
f=f, # type: ignore[arg-type]
701701
input_names=input_names,
702702
output_names=output_names,
703703
dynamic_axes=dynamic_axes,

tests/test_bundle_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def test_download_monaihosting(self, mock_get_versions):
250250
mock_logger.warning.assert_called_once()
251251

252252
@skip_if_quick
253-
@patch("monai.bundle.scripts.get_versions", return_value={"version": "1.2"})
253+
@patch("monai.bundle.scripts.get_versions", return_value={"version": "1.3"})
254254
def test_download_ngc(self, mock_get_versions):
255255
"""Test checking MONAI version from a metadata file."""
256256
with patch("monai.bundle.scripts.logger") as mock_logger:

0 commit comments

Comments
 (0)