stdevel / katprep

Python toolkit for automating system maintenance and generating patch reports along with Foreman/Katello and Red Hat Satellite 6.x
GNU General Public License v3.0
35 stars 6 forks source link

Replace usage of mock with unittest.mock #156

Closed okin closed 2 years ago

okin commented 3 years ago

Is your feature request related to a problem? Please describe.

Currently we expect the mock module to be installed as a dependency. Since Python 3.x it is part of the standard library. We can reduce dependencies to external packages through this.

Describe the solution you'd like

Remove mock from requirements-tests.txt. Replace import mock with import unittest.mock as mock

Additional context We do not use any special features that require a newer version of mock.