Skip to content

Conversation

@meaksh
Copy link
Contributor

@meaksh meaksh commented Oct 9, 2023

What does this PR do?

This PR simply removes the usage of mock in favor of unittest.mock (standard library), as after Salt dropping support for Python 3.6, there is no need to keep using mock library at the time of testing.

Additionally, it removes the import of __version__ (an unused __mock_version), as this attribute was dropped and not available in Python 3.9+ (python/cpython#17977)

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@meaksh meaksh requested a review from a team as a code owner October 9, 2023 12:12
@meaksh meaksh requested review from garethgreenaway and removed request for a team October 9, 2023 12:12
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Remove usage of "mock" in favor of "unittest.mock" [master] Remove usage of "mock" in favor of "unittest.mock" Oct 9, 2023
@meaksh meaksh temporarily deployed to ci October 9, 2023 12:29 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 12:29 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 13:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 13:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 13:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 13:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 13:18 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 13:26 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 14:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 14:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 14:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 14:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 14:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 14:03 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 14:32 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 14:32 — with GitHub Actions Inactive
@meaksh meaksh force-pushed the master-remove-mock branch from 2f36038 to b38cbbf Compare October 9, 2023 14:36
@meaksh meaksh temporarily deployed to ci October 9, 2023 15:01 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 15:01 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 15:01 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 9, 2023 15:01 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 10, 2023 10:23 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 10, 2023 10:23 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 10, 2023 10:23 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 10, 2023 10:23 — with GitHub Actions Inactive
@meaksh meaksh force-pushed the master-remove-mock branch from 93204c4 to 9fe69ef Compare October 17, 2023 12:08
@meaksh meaksh temporarily deployed to ci October 17, 2023 12:38 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 17, 2023 12:38 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 17, 2023 12:39 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 17, 2023 12:39 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 17, 2023 12:39 — with GitHub Actions Inactive
@meaksh meaksh temporarily deployed to ci October 17, 2023 12:39 — with GitHub Actions Inactive
@meaksh
Copy link
Contributor Author

meaksh commented Nov 30, 2023

Closing in favor of #65644

@meaksh meaksh closed this Nov 30, 2023
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.

2 participants