Skip to content

AssertionError when download bundles from ngc #8160

Closed

Description

@KumoLiu
[2024-10-18T08:13:09.197Z] ======================================================================
[2024-10-18T08:13:09.197Z] FAIL: test_download_ngc (tests.test_bundle_download.TestDownload)
[2024-10-18T08:13:09.197Z] Test checking MONAI version from a metadata file.
[2024-10-18T08:13:09.197Z] ----------------------------------------------------------------------
[2024-10-18T08:13:09.197Z] Traceback (most recent call last):
[2024-10-18T08:13:09.197Z]   File "/usr/lib/python3.10/unittest/mock.py", line 1379, in patched
[2024-10-18T08:13:09.197Z]     return func(*newargs, **newkeywargs)
[2024-10-18T08:13:09.197Z]   File "/tmp/MONAI/tests/test_bundle_download.py", line 259, in test_download_ngc
[2024-10-18T08:13:09.197Z]     mock_logger.warning.assert_not_called()
[2024-10-18T08:13:09.197Z]   File "/usr/lib/python3.10/unittest/mock.py", line 890, in assert_not_called
[2024-10-18T08:13:09.197Z]     raise AssertionError(msg)
[2024-10-18T08:13:09.197Z] AssertionError: Expected 'warning' to not have been called. Called 1 times.
[2024-10-18T08:13:09.197Z] Calls: [call('Your MONAI version is 1.2, but the bundle is built on MONAI version 1.4.0.')].

Activity

  1. added a commit that references this issue on Oct 18, 2024
    7de9f9b
  2. added a commit that references this issue on Oct 22, 2024
    79f9ad9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions