Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Py3.6 ModuleNotFoundError: No module named 'mock' #2575

Closed
30 tasks done
phillxnet opened this issue Jun 6, 2023 · 1 comment
Closed
30 tasks done

Py3.6 ModuleNotFoundError: No module named 'mock' #2575

phillxnet opened this issue Jun 6, 2023 · 1 comment
Assignees

Comments

@phillxnet
Copy link
Member

phillxnet commented Jun 6, 2023

Post #2567 in testing branch, and the pending changes in #2573, we have dropped the external mock library in preference for the build-in Python standard library (since 3.3) of unittest.mock. The following tests are affected by this pending change in testing:

  • rockstor.scripts.tests.test_reboot_shutdown (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_api (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_appliances (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_commands (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_config_backup (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_dashboardconfig (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_disk_smart (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_disks (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_email_client (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_group (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_network (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_nfs_export (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_oauth_app (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_pool_balance (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_pool_balance_huey (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_pool_scrub (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_pools (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_samba (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_sftp (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_share_acl (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_share_commands (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_shares (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_snapshot (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_tls_certificate (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_update_subscription (unittest.loader._FailedTest) ... ERROR
  • rockstor.storageadmin.tests.test_user (unittest.loader._FailedTest) ... ERROR
  • rockstor.system.tests.test_directory_services (unittest.loader._FailedTest) ... ERROR
  • rockstor.system.tests.test_osi (unittest.loader._FailedTest) ... ERROR
  • rockstor.system.tests.test_pkg_mgmt (unittest.loader._FailedTest) ... ERROR
  • rockstor.system.tests.test_system_network (unittest.loader._FailedTest) ... ERROR
@phillxnet phillxnet self-assigned this Jun 6, 2023
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 6, 2023
Imports changed to reflect now build-in unittest.mock.

# Includes copywrite changes:
- Added missing copyright.
- Majority in affected directories updated re date https.
phillxnet added a commit that referenced this issue Jun 6, 2023
…r_No_module_named_'mock'

Py3.6 ModuleNotFoundError: No module named 'mock' - tests #2575
@phillxnet
Copy link
Member Author

Closing as:
Fixed by #2576

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

No branches or pull requests

1 participant