diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-01-29 16:55:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 14:55:39 -0700 |
commit | 5f8f85bb38cc972d3d2c705a1ec73db3f690f323 (patch) | |
tree | 6f024357106ab9cd33334096dadd9978b3561849 /cloudinit/tests/test_version.py | |
parent | 8409dd7da21b064214091edd8f1469267be1e738 (diff) | |
download | vyos-cloud-init-5f8f85bb38cc972d3d2c705a1ec73db3f690f323.tar.gz vyos-cloud-init-5f8f85bb38cc972d3d2c705a1ec73db3f690f323.zip |
Replace mock library with unittest.mock (#186)
* cloudinit: replace "import mock" with "from unittest import mock"
* test-requirements.txt: drop mock
Co-authored-by: Chad Smith <chad.smith@canonical.com>
Diffstat (limited to 'cloudinit/tests/test_version.py')
-rw-r--r-- | cloudinit/tests/test_version.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/tests/test_version.py b/cloudinit/tests/test_version.py index a96c2a47..778a762c 100644 --- a/cloudinit/tests/test_version.py +++ b/cloudinit/tests/test_version.py @@ -1,10 +1,10 @@ # This file is part of cloud-init. See LICENSE file for license information. +from unittest import mock + from cloudinit.tests.helpers import CiTestCase from cloudinit import version -import mock - class TestExportsFeatures(CiTestCase): def test_has_network_config_v1(self): |