diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2018-08-15 16:33:44 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-08-15 15:41:16 +0100 |
commit | 9c32f8a28c0e555537ee0c8236e099a6990dacbc (patch) | |
tree | 813a3870556015763fdc31e0868257c89225d325 /tests/db | |
parent | 7eaaaf6e0f0acfe754aaad4d07cbd83980151665 (diff) |
Use unittest.mock from the stdlib
It was added to the stdlib in py3.3 and we already require 3.5.
Diffstat (limited to 'tests/db')
-rw-r--r-- | tests/db/test_envelope.py | 3 | ||||
-rw-r--r-- | tests/db/test_message.py | 3 | ||||
-rw-r--r-- | tests/db/test_thread.py | 3 | ||||
-rw-r--r-- | tests/db/test_utils.py | 2 |
4 files changed, 4 insertions, 7 deletions
diff --git a/tests/db/test_envelope.py b/tests/db/test_envelope.py index f14b8594..873f0927 100644 --- a/tests/db/test_envelope.py +++ b/tests/db/test_envelope.py @@ -19,8 +19,7 @@ import email.policy import os import tempfile import unittest - -import mock +from unittest import mock from alot.db import envelope diff --git a/tests/db/test_message.py b/tests/db/test_message.py index 6322a77e..2f7a6b8c 100644 --- a/tests/db/test_message.py +++ b/tests/db/test_message.py @@ -15,8 +15,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import unittest - -import mock +from unittest import mock from alot import account from alot.db import message diff --git a/tests/db/test_thread.py b/tests/db/test_thread.py index e3e398eb..8c78a026 100644 --- a/tests/db/test_thread.py +++ b/tests/db/test_thread.py @@ -17,8 +17,7 @@ """Tests for the alot.db.thread module.""" import datetime import unittest - -import mock +from unittest import mock from alot.db import thread diff --git a/tests/db/test_utils.py b/tests/db/test_utils.py index 59a8e5b6..ac6555c0 100644 --- a/tests/db/test_utils.py +++ b/tests/db/test_utils.py @@ -17,9 +17,9 @@ import os.path import shutil import tempfile import unittest +from unittest import mock import gpg -import mock from alot import crypto from alot.db import utils |